PowerSwitch Device
- class ska_mid_cbf_mcs.power_switch.power_switch_device.PowerSwitch(*args: Any, **kwargs: Any)[source]
Bases:
SKABaseDevice
TANGO device class for controlling and monitoring the web power switch that distributes power to the Talon LRUs.
- create_component_manager() PowerSwitchComponentManager [source]
Create and return a component manager for this device.
- Returns:
a component manager for this device
- write_simulationMode(value: ska_tango_base.control_model.SimulationMode) None [source]
Set the simulation mode of the device. When simulation mode is set to True, the power switch software simulator is used in place of the hardware. When simulation mode is set to False, the real power switch driver is used.
- Parameters:
value – SimulationMode
- read_isCommunicating() bool [source]
Get whether or not the power switch is communicating.
- Returns:
True if power switch can be contacted, False if not
- class InitCommand(*args: Any, **kwargs: Any)[source]
Bases:
InitCommand
A class for the PowerSwitch’s init_device() “command”.
- class TurnOnOutletCommand(*args: Any, **kwargs: Any)[source]
Bases:
ResponseCommand
The command class for the TurnOnOutlet command.
Turn on an individual outlet, specified by the outlet ID
- do(argin: str) Tuple[ska_tango_base.commands.ResultCode, str] [source]
Implement TurnOnOutlet command functionality.
- Parameters:
argin – the outlet ID of the outlet to switch on
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- class TurnOffOutletCommand(*args: Any, **kwargs: Any)[source]
Bases:
ResponseCommand
The command class for the TurnOffOutlet command.
Turn off an individual outlet, specified by the outlet ID.
- do(argin: str) Tuple[ska_tango_base.commands.ResultCode, str] [source]
Implement TurnOffOutlet command functionality.
- Parameters:
argin – the outlet ID of the outlet to switch off
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.