Tile Cli
The command line interface for the MCCS Tile device server.
- class CliMeta(name: str, bases: tuple[ska_low_mccs_spshw.tile.tile_cli.CliMeta], attrs: dict)
Metaclass to catch and dissect exceptions for all class methods.
They get turned into fire.core.FireError exceptions.
- classmethod fire_except(method)
Wrap the method to handle exceptions.
Any
tango.DevFailed
exception raised by a method is converted to afire.core.FireError
, so that the CLI framework handles it nicely.
- class MccsTileCli
CLI interface to
ska_low_mccs_spshw.tile.tile_device.MccsTile
.- ConfigureIntegratedBeamData(integration_time=0.5)
Configure the transmission of integrated beam data with the integration time.
- Parameters:
integration_time (
float
) – integration time in seconds, defaults to 0.5- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- ConfigureIntegratedChannelData(integration_time=0.5)
Configure the transmission of integrated channel data with the integration time.
- Parameters:
integration_time (
float
) – integration_time in seconds (defaults to 0.5)- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- LoadPointingDelay(load_time=0)
Load the pointing delays at the specified time delay.
- Parameters:
load_time (
int
) – time delay (default = 0)- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- SendBeamData(timestamp=None, seconds=0.2)
Transmit a snapshot containing beamformed data.
- SendChannelisedData(num_samples=128, first_channel=0, last_channel=511, timestamp=None, seconds=0.2)
Transmit a snapshot 0f channelized data totalling number_of_samples spectra.
- Parameters:
- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- SendChannelisedDataContinuous(channel_id=None, num_samples=128, wait_seconds=0, timestamp=None, seconds=0.2)
Transmit channelised data continuously.
- Parameters:
- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Raises:
ValueError – if a general failure occurred in device
- SendRawData(sync=False, timestamp=None, seconds=0.2)
Transmit a snapshot containing raw antenna data.
- Parameters:
- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- StartBeamformer(start_time=0, duration=-1)
Start the beamformer at the specified time delay.
- Parameters:
- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- StopBeamformer()
Stop the beamformer.
- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- __init__()
Initialise a new CLI instance.
Hardcoded to connect to “low-mccs/tile/0001”.
- connect()
Connect to the hardware.
- Return type:
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- logginglevel(level=None)
Get and/or set the logging level of the device.
- command_result_as_string(method)
Wrap and format device command results as a two-line string.