DSManager Python API
Tango Device for Dish Structure with monitoring and control to OPCUA server.
- class DSManager(*args, **kwargs)[source]
The Dish Structure Manager.
- ExecuteOPCUACommand(values)[source]
Execute an OPC-UA command on the DSC.
- Parameters:
values (list[str]) – string values for the command name and any required arguments
- Return type:
Tuple[List[ResultCode],List[Optional[str]]]- Returns:
A tuple containing a return code and a string message indicating status.
- GetCurrentTAIOffset()[source]
Get the current TAIoffset as read from the DSC with a manual calculation fallback.
If the read for the TAIoffset fails on the DSC then the TAI offset will be calculated manually by the DSManager device.
- Returns:
TAI offset
- Return type:
float
- InterlockAck()[source]
Clear the interlock status once interlocks or E-Stops have been cleared.
- Return type:
Tuple[List[ResultCode],List[Optional[str]]]- Returns:
A tuple containing a return code and a string message indicating status.
- ReTakeAuthority()[source]
Retake authority.
- Return type:
Tuple[List[ResultCode],List[Optional[str]]]- Returns:
A tuple containing a return code and a string message indicating status.
- ReleaseAuth()[source]
Releases command authority immediately bypassing the LRC queue.
- Return type:
Tuple[List[ResultCode],List[Optional[str]]]- Returns:
A tuple containing a return code and a string message indicating status.
- ResetAxesCommand()[source]
Reset the axes errors.
- Return type:
Tuple[List[ResultCode],List[Optional[str]]]- Returns:
A tuple containing a return code and a string message indicating status.
- SetIndexPosition(band)[source]
Triggers the Dish to transition the feed indexer to the argin position.
If the dish is in low power mode, it is first set to full power mode.
- Parameters:
band (
int) – The band which the dish is instructed to move the feed indexer to- Return type:
Tuple[List[ResultCode],List[Optional[str]]]- Returns:
A tuple containing a return code and a string message indicating status.
- SetPointMode()[source]
Triggers the Dish to transition to the POINT mode.
- Return type:
Tuple[List[ResultCode],List[Optional[str]]]- Returns:
A tuple containing a return code and a string message indicating status.
- SetPowerMode(values)[source]
Trigger the Dish to transition to SetPowerMode.
- Parameters:
values (
list[float]) – float values for LowPowerOn(boolean), Power limit(kW)- Return type:
Tuple[List[ResultCode],List[Optional[str]]]- Returns:
A tuple containing a return code and a string message indicating status.
- SetStandbyMode()[source]
Triggers the Dish to transition to the STANDBY mode.
If the dish is stowed, sets it to full power mode and unstows it. Then, deactivates the azimuth and elevation axes if they are not in standby mode before setting the dish to low power mode.
- Return type:
Tuple[List[ResultCode],List[Optional[str]]]- Returns:
A tuple containing a return code and a string message indicating status.
- Slew(values)[source]
Trigger the Dish to start moving to the commanded (Az,El) position.
If the dish is in low power mode, it is first set to full power mode.
- Parameters:
values (
list[float]) – float values for the az position, el position- Return type:
Tuple[List[ResultCode],List[Optional[str]]]- Returns:
A tuple containing a return code and a string message indicating status.
- Stow()[source]
Transition the dish to STOW immediately bypassing the LRC queue.
- Return type:
Tuple[List[ResultCode],List[Optional[str]]]- Returns:
A tuple containing a return code and a string message indicating status.
- TakeAuthority()[source]
Take authority.
- Return type:
Tuple[List[ResultCode],List[Optional[str]]]- Returns:
A tuple containing a return code and a string message indicating status.
- Track()[source]
Triggers the Dish to start tracking.
Dish will start tracking the positions present in the track table using the set interpolation mode.
- Return type:
Tuple[List[ResultCode],List[Optional[str]]]- Returns:
A tuple containing a return code and a string message indicating status.
- TrackLoadStaticOff(values)[source]
Load the given static pointing model offsets.
- Return type:
Tuple[List[ResultCode],List[Optional[str]]]- Returns:
A tuple containing a return code and a string message indicating status.
- TrackLoadTable(values)[source]
Load the track table with the given load mode.
- Return type:
Tuple[List[ResultCode],List[Optional[str]]]- Returns:
A tuple containing a return code and a string message indicating status.
- TrackStop()[source]
Triggers the dish to stop tracking but will not apply brakes.
- Return type:
Tuple[List[ResultCode],List[Optional[str]]]- Returns:
A tuple containing a return code and a string message indicating status.
- Unstow()[source]
Triggers the dish to unstow.
- Return type:
Tuple[List[ResultCode],List[Optional[str]]]- Returns:
A tuple containing a return code and a string message indicating status.
- achievedPointing()[source]
Indicate achieved pointing of dish axis.
- Return type:
Tuple[list[float],float,AttrQuality]
- achievedTargetLock()[source]
Indicate Actual “On Sky” rms tracking error of device.
- Return type:
Tuple[bool,float,AttrQuality]
- actStaticOffsetValueEl()[source]
Indicate actual elevation static offset in arcsec.
- Return type:
Tuple[float,float,AttrQuality]
- actStaticOffsetValueXel()[source]
Indicate actual cross-elevation static offset in arcsec.
- Return type:
Tuple[float,float,AttrQuality]
- ambTOnInput(value)[source]
Set the value to be used for AmbTOn when the next pointing model is applied.
Setting this to True will enable ambient temperature corrections.
- applicationState()[source]
Reflect the Application State node’s state.
- Return type:
Tuple[ApplicationStateType,float,AttrQuality]
- buildState()[source]
Get DS manager and DSC version structure.
- Return type:
Tuple[str,float,AttrQuality]
- create_component_manager()[source]
Create a component manager.
- Return type:
- Returns:
the component manager
- currentMode()[source]
Reflect the Current Mode node’s state.
- Return type:
Tuple[CurrentModeType,float,AttrQuality]
- currentPointing()[source]
Display pointing feedback.
- Return type:
Tuple[list[float],float,AttrQuality]
- delete_device()[source]
Override delete_device to stop communication with DSC before deletion.
- Return type:
None
- desiredPointingAz()[source]
Indicate desired pointing of device azimuth axis.
- Return type:
Tuple[list[float],float,AttrQuality]
- desiredPointingEl()[source]
Indicate desired pointing of device elevation axis.
- Return type:
Tuple[list[float],float,AttrQuality]
- displayedDiagnosis()[source]
Indicate dsc DisplayedDiagnosis.
- Return type:
Tuple[str,float,AttrQuality]
- dscCmdAuth()[source]
Indicate DSC command authority.
- Return type:
Tuple[DscCmdAuthType,float,AttrQuality]
- dscCtrlState()[source]
Indicate dsc control state.
- Return type:
Tuple[DscCtrlState,float,AttrQuality]
- dscState()[source]
Indicate dish structure controller state.
- Return type:
Tuple[DSCState,float,AttrQuality]
- healthState()[source]
Indicate the Health State.
- Return type:
Tuple[HealthState,float,AttrQuality]
- hhpConnected()[source]
Indicate whether the hand held pendant is connected.
- Return type:
Tuple[bool,float,AttrQuality]
- indexerPosition()[source]
Indicate operating mode of device.
- Return type:
Tuple[IndexerPosition,float,AttrQuality]
- lastCommandInvoked()[source]
Return the last command invoked and its timestamp.
- Return type:
Tuple[tuple[str,str],float,AttrQuality]
- lastCommandUpdate()[source]
Reflect the last command update.
- Return type:
Tuple[list[str],float,AttrQuality]
- operatingMode()[source]
Indicate operating mode of device.
- Return type:
Tuple[DSOperatingMode,float,AttrQuality]
- pointingState()[source]
Indicate operating mode of device.
- Return type:
Tuple[PointingState,float,AttrQuality]
- powerState()[source]
Indicate power state of device.
- Return type:
Tuple[DSPowerState,float,AttrQuality]
- staticOnInput(value)[source]
Set the value to be used for StaticOn when the next pointing model is applied.
Setting this to True will enable static pointing model corrections.
- tiltOnInput(value)[source]
Set the value to be used for TiltOn when the next pointing model is applied.
Options: OFF (0), TILTMETER_ONE (1), TILTMETER_TWO (2).
- trackTableCurrentIndex()[source]
Index of current point being tracked in the track table.
- Return type:
Tuple[int,float,AttrQuality]