MccsStation Tango Device
An implementation of a station Tango device for MCCS.
Properties
- AntennaIDs
- Data type:
DevVarLong64Array
- AntennaMasks
Masked antenna indexed by TPM_Idx (i.e tpm_id * 16 + channel // 2).
- Data type:
DevVarBooleanArray
- Default value:
[False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False]
- AntennaTrls
- Data type:
DevVarStringArray
- AntennaXs
- Data type:
DevVarDoubleArray
- AntennaYs
- Data type:
DevVarDoubleArray
- AntennaZs
- Data type:
DevVarDoubleArray
- CalibrationLoadDelay
- Data type:
DevDouble
- Default value:
1.0
- FieldStationName
- Data type:
DevString
- GroupDefinitions
Each string in the list is a JSON serialised dict defining the
group_name,devicesandsubgroupsin the group. A Tango Group object is created for each item in the list, according to the hierarchy defined. This provides easy access to the managed devices in bulk, or individually.- Data type:
DevVarStringArray
- LoggingLevelDefault
Default logging level at device startup.
- Data type:
DevUShort
- Default value:
4
- LoggingTargetsDefault
Default logging targets at device startup.
- Data type:
DevVarStringArray
- Default value:
[‘tango::logger’]
- ParentConnectionTimeout
- Data type:
DevDouble
- Default value:
120
- ParentTRL
- Data type:
DevString
- RefHeight
- Data type:
DevDouble
- RefLatitude
- Data type:
DevDouble
- RefLongitude
- Data type:
DevDouble
- SkaLevel
Indication of importance of the device in the SKA hierarchy to support drill-down navigation: 1..6, with 1 highest.
- Data type:
DevShort
- Default value:
4
- SpsStationTrl
- Data type:
DevString
- StationCalibratorTrl
- Data type:
DevString
- StationId
- Data type:
DevLong64
- UseBeamWeights
True if we want to use the beam weighting in calibration coefficients. Currently only unit weights are allowed and masked antennas are zeros accross all channels.
- Data type:
DevBoolean
- Default value:
True
Attributes
- State
The operational state of the device as enumeration.
- Access:
READ
- Data type:
DevState
- Data format:
SCALAR
- Status
More detailed textual information about the device’s status.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- activeBankCalibrationId
Return the calibration id in the active bank.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- activeBeamInfo
Return the configuration information of currently active PointingRequests.
List information about each active beam. Info includes pointing type, values, reference time, scan time, time step, next update time, and whether the scan is complete.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- additionalDebug
Return whether additional debug information is enabled.
- Access:
READ_WRITE
- Data type:
DevBoolean
- Data format:
SCALAR
- adminMode
The Admin Mode of the device.
It may interpret the current device condition and condition of all managed devices to set this.
- Access:
READ_WRITE
- Data type:
DevEnum
- Data format:
SCALAR
- antennaMasks
Return the antennaMasks.
- Access:
READ_WRITE
- Data type:
DevBoolean
- Data format:
SPECTRUM
- Max_dim_x:
256
- appliedWeightingBlock
Return the last applied weighting block.
Magic number -1 represents that this has not been updated.
- Access:
READ
- Data type:
DevFloat
- Data format:
IMAGE
- Max_dim_x:
384
- beamTrls
Return the TRLs of station beams associated with this station.
- Access:
READ
- Data type:
DevString
- Data format:
SPECTRUM
- Max_dim_x:
8
- beamformerTable
Return the ids of the channels configured for this beam.
- Access:
READ
- Data type:
DevLong
- Data format:
IMAGE
- Max_dim_x:
8
- buildState
Read the Build State of the device.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- calibrationCoefficients
Return the calibration coefficients for the station.
- Todo:
How big should this array be? 4 complex values (Jones
matrix. per channel. This station can have up to 16 tiles of up to 16 antennas, so that is 8 x 16 x 16 = 2048 coefficients per channel. But how many channels? 384 channels, 786432 elements per station (402M for SKA Low)
- Access:
READ
- Data type:
DevFloat
- Data format:
SPECTRUM
- Max_dim_x:
512
- calibrationJobId
Return the calibration job id.
- Access:
READ
- Data type:
DevLong
- Data format:
SCALAR
- calibrationLoadDelay
Return the load time in seconds used when we call ApplyCalibration internally.
Value defaults to 1 second.
- Access:
READ_WRITE
- Data type:
DevFloat
- Data format:
SCALAR
- commandedObsState
The last commanded stable Observation State of the device.
Initial value is EMPTY. The only stable states it can change to are EMPTY, IDLE, READY or ABORTED, following the start of any state transition command.
- Access:
READ
- Data type:
DevEnum
- Data format:
SCALAR
- commandedState
The last commanded Operating State of the device.
Initial string is “None”. Only other strings it can change to is “OFF”, “STANDBY” or “ON”, following the Off(), Standby() or On() commands. If the state transition commands are long running commands the commanded state will only update when the long running command starts executing.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- configurationDelayExpected
The expected configuration delay of the device in seconds.
- Access:
READ
- Data type:
DevUShort
- Data format:
SCALAR
- Unit:
seconds
- configurationProgress
The percentage configuration progress of the device.
- Access:
READ
- Data type:
DevUShort
- Data format:
SCALAR
- Unit:
%
- configuredWeightingBlock
Return the configured weighting block.
This will return the Weighting Block configured. Note that this may or may not have been written to the hardware. Please view appliedWeightingBlock for the block applied.
Magic number -1 represents that this has not been updated.
- Access:
READ
- Data type:
DevFloat
- Data format:
IMAGE
- Max_dim_x:
384
- controlMode
The control mode of the device.
A Tango Device accepts only from a ‘local’ client and ignores commands and queries received from TM or any other ‘remote’ clients. The local client has to release LOCAL control before REMOTE clients can take control again.
- Access:
READ_WRITE
- Data type:
DevEnum
- Data format:
SCALAR
- cspIngestConfig
Report the CspIngest configuration in use for this station.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- daqJobId
Return the DAQ job id.
- Access:
READ
- Data type:
DevLong
- Data format:
SCALAR
- daqPath
Report the DAQ path in use for this station.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- dataDirectory
Return the data directory.
(the parent directory for all files generated by this station)
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- dataReceivedResult
Read the result of the receiving of data.
- Access:
READ
- Data type:
DevString
- Data format:
SPECTRUM
- Max_dim_x:
2
- delayCentre
Return the WGS84 position of the delay centre of the station.
- Todo:
WGS84 is a datum. What is the coordinate system? Latitude and longitude? Or is it SUTM50 eastings and northings? Either way, do we need to allow for elevation too?
- Access:
READ_WRITE
- Data type:
DevFloat
- Data format:
SPECTRUM
- Max_dim_x:
2
- earlyBeamformerStart
Is beamformer started at Configure.
If False, beamformer is started and stopped at Scan/EndScan If True, it is started at Configure and stopped at DeallocateSubarray
- Access:
READ_WRITE
- Data type:
DevBoolean
- Data format:
SCALAR
- eventHistory
Return the event history of the event serialiser.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- failedPointingUpdates
Return the tracking beams which are currently unlocked.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- healthInfo
(‘Read the Health Info of the device.nnIt provides an explanation for the currently reported Health State’,)
- Access:
READ
- Data type:
DevString
- Data format:
SPECTRUM
- Max_dim_x:
256
- healthModelParams
Get the health params from the health model.
- Access:
READ_WRITE
- Data type:
DevString
- Data format:
SCALAR
- healthReport
Get the health report.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- healthState
Read the Health State of the device.
It interprets the current device condition and condition of all managed devices to set this.
- Access:
READ
- Data type:
DevEnum
- Data format:
SCALAR
- healthThresholds
Get the health params from the health model.
Default health thresholds:
“antennas”: (f2f, d2f, d2d), tuple(int, int, int): Number of antennas failed before health failed, Number of antennas degraded before health failed, Number of antennas degraded before health degraded
- Access:
READ_WRITE
- Data type:
DevString
- Data format:
SCALAR
- inactiveBankCalibrationId
Return the calibration id of the inactive bank.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- inheritModes
Read the mode inheritance attribute.
- Access:
READ_WRITE
- Data type:
DevBoolean
- Data format:
SCALAR
- isCalibrated
Return a flag indicating whether this station is currently calibrated or not.
- Access:
READ
- Data type:
DevBoolean
- Data format:
SCALAR
- isConfigured
Return a flag indicating whether this station is currently configured or not.
- Access:
READ
- Data type:
DevBoolean
- Data format:
SCALAR
- isInitialised
Return true if all tiles in the SpsStation are initialised.
- Access:
READ
- Data type:
DevBoolean
- Data format:
SCALAR
- isSynchronised
Return true if all tiles in the SpsStation are synchronised.
- Access:
READ
- Data type:
DevBoolean
- Data format:
SCALAR
- lastPointingDelays
Return last pointing delays applied to the tiles.
Values are initialised to 0.0 if they haven’t been set. These values are in antenna EEP order.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- latestPreferredJobId
Return the user_friendly_name of the most recent preferred calibration job.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- loggingFilter
Return if the logging filter is used.
- Access:
READ_WRITE
- Data type:
DevBoolean
- Data format:
SCALAR
- loggingLevel
Read the logging level of the device.
Initialises to LoggingLevelDefault on startup. See
LoggingLevel- Access:
READ_WRITE
- Data type:
DevEnum
- Data format:
SCALAR
- loggingTargets
Read the additional logging targets of the device.
Note that this excludes the handlers provided by the ska_ser_logging library defaults - initialises to LoggingTargetsDefault on startup.
- Access:
READ_WRITE
- Data type:
DevString
- Data format:
SPECTRUM
- Max_dim_x:
4
- longRunningCommandIDsInQueue
Read the IDs of the long running commands in the queue.
Every client that executes a command will receive a command ID as response. Keep track of IDs currently allocated. Entries are removed
self._command_tracker._removal_timeseconds after they have finished.DEPRECATED: A client can check for the queued command(s) in ‘lrcQueue’.
- Access:
READ
- Data type:
DevString
- Data format:
SPECTRUM
- Max_dim_x:
67
- longRunningCommandInProgress
Read the name(s) of the currently executing long running command(s).
Name(s) of command and possible abort in progress or empty string(s).
DEPRECATED: A client can check for the command(s) in progress in ‘lrcExecuting’.
- Access:
READ
- Data type:
DevString
- Data format:
SPECTRUM
- Max_dim_x:
3
- longRunningCommandProgress
Read the progress of the currently executing long running command(s).
ID, progress of the currently executing command(s). Clients can subscribe to on change event and wait for the ID they are interested in.
DEPRECATED: A client can check the progress of command(s) in ‘lrcExecuting’.
- Access:
READ
- Data type:
DevString
- Data format:
SPECTRUM
- Max_dim_x:
6
- longRunningCommandResult
Read the result of the completed long running command.
Reports unique ID and json-encoded result. Clients can subscribe to on change event and wait for the ID they are interested in.
DEPRECATED: A client can check for the result of a command in ‘lrcFinished’.
- Access:
READ
- Data type:
DevString
- Data format:
SPECTRUM
- Max_dim_x:
2
- longRunningCommandStatus
Read the status of the currently executing long running commands.
ID, status pairs of the currently executing commands. Clients can subscribe to on change event and wait for the ID they are interested in.
DEPRECATED: A client can check for the status of a command in the ‘lrcQueue’, ‘lrcExecuting’ and ‘lrcFinished’ attributes.
- Access:
READ
- Data type:
DevString
- Data format:
SPECTRUM
- Max_dim_x:
134
- longRunningCommandsInQueue
Read the long running commands in the queue.
Keep track of which commands are that are currently known about. Entries are removed
self._command_tracker._removal_timeseconds after they have finished.DEPRECATED: A client can check for the queued command(s) in ‘lrcQueue’.
- Access:
READ
- Data type:
DevString
- Data format:
SPECTRUM
- Max_dim_x:
67
- lrcExecuting
A list of info JSON blobs of the currently executing commands.
- Access:
READ
- Data type:
DevString
- Data format:
SPECTRUM
- Max_dim_x:
3
- lrcFinished
A list of info JSON blobs of the finished long running commands.
- Access:
READ
- Data type:
DevString
- Data format:
SPECTRUM
- Max_dim_x:
100
- lrcProtocolVersions
Return supported protocol versions.
- Access:
READ
- Data type:
DevLong64
- Data format:
SPECTRUM
- Max_dim_x:
2
- lrcQueue
A list of info JSON blobs of the commands in queue.
- Access:
READ
- Data type:
DevString
- Data format:
SPECTRUM
- Max_dim_x:
32
- numberOfChannels
Return the total number of channels in the beamformer.
- Access:
READ
- Data type:
DevLong
- Data format:
SCALAR
- obsMode
The Observation Mode of the device.
- Access:
READ
- Data type:
DevEnum
- Data format:
SCALAR
- obsState
The Observation State of the device.
- Access:
READ
- Data type:
DevEnum
- Data format:
SCALAR
- parentConnectionFailed
Return whether the connection to the parent device is failing.
- Access:
READ
- Data type:
DevLong64
- Data format:
SCALAR
- parentTRL
Return the current parent TRL.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- pointingUpdateTimingHistory
Return the pointing update timing history as JSON.
Contains timing information for the last N pointing updates (configurable via write, default 10), including:
window_start: Start time of the update window
window_end: End time of the update window
cycle_start: When the calculate/load/apply cycle started
cycle_end: When the calculate/load/apply cycle finished
load_time: The time supplied to hardware for applying delays
time_into_window: Seconds into the window when cycle started
time_consumed: Seconds consumed by the update cycle
Write an integer to this attribute to change the history size.
- Access:
READ_WRITE
- Data type:
DevString
- Data format:
SCALAR
- refHeight
Return the refHeight attribute.
- Access:
READ
- Data type:
DevDouble
- Data format:
SCALAR
- Unit:
meters
- refLatitude
Return the refLatitude attribute.
- Access:
READ
- Data type:
DevDouble
- Data format:
SCALAR
- refLongitude
Return the refLongitude attribute.
- Access:
READ
- Data type:
DevDouble
- Data format:
SCALAR
- scanId
Return list of current ScanId for subarrays.
Array is 0-based, subarrayId 0 does not exist and always has ID = 0)
- Access:
READ
- Data type:
DevLong
- Data format:
SPECTRUM
- Max_dim_x:
17
- simulationMode
When TRUE the device is using a simulator
- Access:
READ_WRITE
- Data type:
DevEnum
- Data format:
SCALAR
- staticDelays
Report the static delays in use for this station.
- Access:
READ
- Data type:
DevFloat
- Data format:
SPECTRUM
- Max_dim_x:
512
- stationID
Return the station ID.
- Access:
READ
- Data type:
DevLong64
- Data format:
SCALAR
- testMode
If TEST the device is using testing logic
- Access:
READ_WRITE
- Data type:
DevEnum
- Data format:
SCALAR
- trackingStatus
Return the tracking status of currently active PointingRequests.
Beam IDs not listed have no active PointingRequest.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- transientBufferTrl
Return the TRL of the TANGO device that managers the transient buffer.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- useNewHealthModel
Return a flag indicating whether this station is using the new health model.
- Access:
READ_WRITE
- Data type:
DevBoolean
- Data format:
SCALAR
- versionId
Read the Version Id of the device.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
Commands
- Abort() DevVarLongStringArray
Abort any executing long running command(s) and empty the queue.
- Returns:
[ResultCode.STARTED][Command ID]
- AbortCommands() DevVarLongStringArray
Empty out long running commands in queue.
DEPRECATED: A client should call the tracked ‘Abort’ long running command instead.
- Returns:
[ResultCode.STARTED][‘Aborting commands’]
- AcquireDataForCalibration(DevString) DevVarLongStringArray
- Parameter:
The first channel to acquire data for
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- ApplyCalibration(DevString) DevVarLongStringArray
- Parameter:
load time, in ISO formatted time. If not set, defaults to calibrationLoadDelay seconds in the future.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- ApplyConfiguration(DevString) DevVarLongStringArray
- Parameter:
containing optional transaction_id, calibration_id, subarray_id.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- ApplyPointingDelays(DevString) DevVarLongStringArray
- Parameter:
switch time, in ISO formatted time. Default: now
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- BeamformerRunningForSubarray(DevLong) DevBoolean
- Parameter:
subarray_id, in the range 1 to 16
- Returns:
True if the beamformer is running
- CheckLongRunningCommandStatus(DevString) DevString
Check the status of a long running command by ID.
- Returns:
Status of the asynchronous task.
- ConfigureChannels(DevVarLongArray) DevVarLongStringArray
- Parameter:
list of channel block description. Elements are:
channel block index: value in range 0:47 for the channel block to set
start_channel - (int) region starting channel, even in range 0 to 510
beam_index - (int) beam used for this region with range 0 to 47
subarray_id - (int) Subarray: 0 is reserved for unallocated entry
subarray_logical_channel - (int) logical channel # in the subarray
subarray_beam_id - (int) ID of the subarray beam
substation_id - (int) Substation
aperture_id: ID of the aperture (station*100+substation?)
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- ConfigureSemiStatic(DevString) DevVarLongStringArray
- Parameter:
Configuration specification for the station device.
- Returns:
The task to be submitted as an LRC.
- ConfigureStationForCalibration(DevString) DevVarLongStringArray
- Parameter:
JSON-ified argument containing DAQ configuration overrides.
- Returns:
A tuple containing a return code and a string message indicating
status. The message is for information purpose only.
- DeallocateSubarray(DevLong) DevVarLongStringArray
- Parameter:
the ID of the subarray to deallocate
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- DebugDevice() DevUShort
Enable remote debugging of this device.
- Returns:
The TCP port the debugger is listening on.
- EndScan(DevLong) DevVarLongStringArray
- Parameter:
the subarray for which the command applies
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- GetPointingDelays(DevString) DevVarDoubleArray
- Parameter:
The type of pointing requested.
- Returns:
The pointing delays as pairs of (delay, delay rate) in EEP order.
- GetVersionInfo() DevVarStringArray
Get the version information of the device.
- Returns:
The device class name and its package information.
- Init() DevVoid
Reinitialise the Tango device.
- Initialise() DevVarLongStringArray
Initialise
- Returns:
The task to be submitted as an LRC.
- LoadBeamWeights(DevString) DevVoid
- Parameter:
The ID of the hardware beam for which to load weights.
- LoadCalibrationCoefficients(DevString) DevVarLongStringArray
- Parameter:
Unique identifier for calibration.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- LoadPointingDelays(DevVarDoubleArray) DevVarLongStringArray
- Parameter:
an array containing a beam index followed by antenna delays in antenna EEP order. 1 + 256*2 = 513 elements.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Off() DevVarLongStringArray
Turn the device off.
- Returns:
[ResultCode][Status message or command ID]
- On() DevVarLongStringArray
Turn the device on.
- Returns:
[ResultCode][Status message or command ID]
- Reset() DevVarLongStringArray
Reset the device.
- Returns:
[ResultCode][Status message or command ID]
- ResetCspIngest() DevVarLongStringArray
Reset csp ingest
- Returns:
result code name of ResetCspIngest
- ResetParentTRL() DevVarLongStringArray
Reset parent t r l
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Scan(DevString) DevVarLongStringArray
- Parameter:
The subarray for which the command applies
- Returns:
The task to be submitted as an LRC.
- SetCspIngest(DevString) DevVarLongStringArray
- Parameter:
json dictionary with optional keywords:
destination_ip - (string) Destination IP
source_port - (int) Source port for integrated data streams
destination_port - (int) Destination port for integrated data streams
- Returns:
result code name of SetCspIngest
- SetParentTRL(DevString) DevVarLongStringArray
- Parameter:
the TRL of the new parent device.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Standby() DevVarLongStringArray
Put the device into standby mode.
- Returns:
[ResultCode][Status message or command ID]
- StartAcquisition(DevString) DevVarLongStringArray
- Parameter:
optional keywords:
start_time - (ISO UTC time) start time
delay - (int) delay start if StartTime is not specified, default 2s
- Returns:
The task to be submitted as a LRC.
- StopTracking(DevLong) DevVarLongStringArray
- Parameter:
the beam id whose tracking you wish to stop.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- StopTrackingAll() DevVarLongStringArray
Stop tracking all
- Returns:
The task to be submitted as a LRC.
- TrackObject(DevString) DevVarLongStringArray
- Parameter:
the type of pointing requested
- Returns:
A tuple containing a return code and a string message. ResultCode.OK if tracking was successfully queued in the pointing manager, ResultCode.REJECTED otherwise.
- TriggerAdcEqualisation(DevString) DevVarLongStringArray
- Parameter:
the expected average power received by antennas in ADU units. Has an input minimum of 0, but in code its limited to 4.2e-7 (corresponds to the maxiumum output of 31.75 dB). There is no maximum value, however, 40 ADUs will result in 0 dB with no bias and 1600 ADUs will result in 0 dB with the maxiumum bias allowed of 32dB.
- Returns:
A tuple containing a return code and a string message indicating
status. The message is for information purpose only.