MccsSubarrayBeam Tango Device
An implementation of a subarray beam Tango device for MCCS.
Properties
- 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’]
- ObsCommandTimeout
The timeout in seconds for Observation commands.
- Data type:
DevLong64
- Default value:
60
- ParentConnectionTimeout
- Data type:
DevDouble
- Default value:
120
- ParentTRL
- Data type:
DevString
- 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
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
- 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
- antennaWeights
Return the antenna weights configured for this beam.
- Access:
READ
- Data type:
DevFloat
- Data format:
SPECTRUM
- Max_dim_x:
384
- buildState
Read the Build State of the device.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- channels
Return the ids of the channels configured for this beam.
- Access:
READ
- Data type:
DevLong
- Data format:
IMAGE
- Max_dim_x:
4
- 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:
%
- 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
- desiredPointing
Return the desired pointing of this beam.
- Access:
READ_WRITE
- Data type:
DevDouble
- Data format:
SPECTRUM
- Max_dim_x:
5
- eventHistory
Return the event history of the event serialiser.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- firstSubarrayChannel
Return the first logical channel allocated to the beam.
- Access:
READ
- Data type:
DevLong
- 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
- inheritModes
Read the mode inheritance attribute.
- Access:
READ_WRITE
- Data type:
DevBoolean
- Data format:
SCALAR
- isBeamLocked
Return a flag indicating whether the beam is locked or not.
- Access:
READ_WRITE
- Data type:
DevBoolean
- 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
- logicalBeamId
Return the logical beam id.
- Todo:
this documentation needs to differentiate logical beam id from beam id
- Access:
READ_WRITE
- Data type:
DevLong
- Data format:
SCALAR
- 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:
66
- 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:
2
- 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:
4
- 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:
132
- 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:
66
- lrcExecuting
A list of info JSON blobs of the currently executing commands.
- Access:
READ
- Data type:
DevString
- Data format:
SPECTRUM
- Max_dim_x:
2
- 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
- missedEvents
Get the amount of missed change events.
Some commands rely on change events from sub-devices, sometime we miss these events, this attribute keeps track of how many we know we have missed.
- Access:
READ
- Data type:
DevLong
- Data format:
SCALAR
- numberOfChannels
Return the first logical channel allocated to the beam.
- 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
- phaseCentre
Return the phase centre.
- Access:
READ
- Data type:
DevDouble
- Data format:
SPECTRUM
- Max_dim_x:
5
- qualityAssuranceMetrics
Expose quality assurance metrics.
Structure: >>> { >>> “apertures”: { >>> <aperture_id>: { >>> “is_beam_locked”: <bool> >>> }, >>> … >>> }, >>> “is_beam_locked”: <bool> >>> }
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- simulationMode
When TRUE the device is using a simulator
- Access:
READ_WRITE
- Data type:
DevEnum
- Data format:
SCALAR
- stationBeamIds
Return the ids of station beams assigned to this subarray beam.
- Access:
READ_WRITE
- Data type:
DevString
- Data format:
SPECTRUM
- Max_dim_x:
512
- stationIds
Return the station ids.
- Access:
READ_WRITE
- Data type:
DevLong
- Data format:
SPECTRUM
- Max_dim_x:
512
- subarrayBeamId
Return the local subarray beam id (scoped per subarray, 1-48).
- Access:
READ
- Data type:
DevLong
- Data format:
SCALAR
- subarrayId
Return the subarray id.
- Access:
READ
- Data type:
DevLong
- Data format:
SCALAR
- targetName
Get the Name of the current target.
- Access:
READ
- Data type:
DevString
- Data format:
SCALAR
- testMode
If TEST the device is using testing logic
- Access:
READ_WRITE
- Data type:
DevEnum
- Data format:
SCALAR
- updateRate
Return the update rate (in hertz) for this subarray beam.
- Access:
READ
- Data type:
DevDouble
- Data format:
SCALAR
- Unit:
Hz
- 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’]
- AbortDevice() DevVarLongStringArray
Abort device
- Returns:
A tuple containing a ResultCode and a command ID.
- AssignResources(DevString) DevVarLongStringArray
- Parameter:
ID of the subarray to which the beam belongs
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- CheckLongRunningCommandStatus(DevString) DevString
Check the status of a long running command by ID.
- Returns:
Status of the asynchronous task.
- Configure(DevString) DevVarLongStringArray
- Parameter:
- Required entries:
- subarray_id:
integer in range 1-16.
- subarray_beam_id:
integer in range 1-48.
- logical_bands:
list of band objects, each with:
- start_channel:
even integer in range 2-504.
- number_of_channels:
integer in range 8-384, multiple of 8.
- Optional entries:
- interface:
expected schema version URI.
- update_rate:
update rate in Hz (minimum 0.0).
- apertures:
list of aperture objects, each supporting aperture_id (required): APXXX.YY format, station_beam_trl, weighting_key_ref, calibration_id
- sky_coordinates:
pointing definition with required reference_frame and optional timestamp, target_name, c1, c1_rate, c2, c2_rate, line1, line2.
- field:
pointing definition with required reference_frame and optional timestamp, target_name, and attrs where attrs may include c1, c1_rate, c2, c2_rate, line1, line2.
- 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.
- End() DevVarLongStringArray
End
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- EndScan() DevVarLongStringArray
End scan
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- GetVersionInfo() DevVarStringArray
Get the version information of the device.
- Returns:
The device class name and its package information.
- Init() DevVoid
Reinitialise the Tango device.
- ObsReset() DevVarLongStringArray
Obs reset
- 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]
- ReleaseAllResources() DevVarLongStringArray
Release all resources
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Reset() DevVarLongStringArray
Reset the device.
- Returns:
[ResultCode][Status message or command ID]
- 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.
- Restart() DevVarLongStringArray
Restart
- 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 ID for this scan
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- 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]