Helper_CSP_Master_Device
This module defines a helper device that acts as csp master in our testing.
- class ska_tmc_simulators.helper_csp_master_device.HelperCspMasterDevice(*args: Any, **kwargs: Any)
Bases:
HelperBaseDeviceA helper device class for Csp Controller device
- InitCommand = None
- init_device() None
- lrcProtocolVersions() tuple[int, int]
Return supported protocol versions.
- Returns:
A tuple containing the lower and upper bounds of supported long running command protocol versions.
- create_component_manager() EmptyComponentManager
Creates an instance of EmptyComponentManager
- Returns:
component manager instance
- Return type:
EmptyComponentManager
- read_adminMode() int
This method reads the adminMode value of the device.
- Returns:
admin_mode value
- Return type:
AdminMode
- write_adminMode(mode: int) None
This method writes the adminMode value of the device.
- read_sourceDishVccConfig() str
This method reads the sourceDishVccConfig value of the dish.
- Returns:
source_dish_vcc_config value
- Return type:
str
- read_dishVccConfig() str
This method reads the dishVccConfig value of the dish.
- Returns:
dish_vcc_config value
- Return type:
str
- is_On_allowed() bool
This method checks if the On command is allowed in current state.
- Returns:
Trueif the command is allowed- Return type:
bool
- On(argin: List[str])
Turn the device on.
- execute_On(argin: List[str]) Tuple[List[ska_tango_base.commands.ResultCode], List[str]]
This method invokes On command on CSP Master
- Returns:
ResultCode and message
- Return type:
Tuple
- is_Off_allowed() bool
This method checks if the Off command is allowed in current state.
- Returns:
Trueif the command is allowed- Return type:
bool
- Off(argin: List[str])
Turn the device off.
- execute_Off(argin: List[str]) Tuple[List[ska_tango_base.commands.ResultCode], List[str]]
This method invokes Off command on CSP Master
- Returns:
ResultCode and message
- Return type:
Tuple
- is_Standby_allowed() bool
This method checks if the Standby command is allowed in current state.
- Returns:
Trueif the command is allowed- Return type:
bool
- Standby(argin: List[str])
Turn the device off.
- execute_Standby(argin: List[str]) Tuple[List[ska_tango_base.commands.ResultCode], List[str]]
This method invokes Standby command on CSP Master
- Returns:
ResultCode and message
- Return type:
Tuple
- ResetSysParams() Tuple[List[ska_tango_base.commands.ResultCode], List[str]]
This Command Reset Sys Param and source sys param
- Returns:
ResultCode and message
- is_LoadDishCfg_allowed() bool
This method checks if the LoadDishCfg command is allowed in current state.
- Returns:
Trueif the command is allowed- Return type:
bool
- push_dish_vcc_config_and_source_dish_vcc_config()
Push sys param and source sys param event
- LoadDishCfg(argin: str) Tuple[List[ska_tango_base.commands.ResultCode], List[str]]
This command updates attribute sourceDishVccConfig and dishVccConfig
- Parameters:
argin – json with File URI.
- Dtype:
str
- Returns:
ResultCode and message
- Return type:
Tuple
- Example argin:
{ “interface”: “https://schema.skao.int/ska-mid-cbf-initial-parameters/2.2”,
“tm_data_sources”: [tm_data_sources] #The data source that is used to store the data and is accessible through the Telescope Model
“tm_data_filepath”: “path/to/file.json” #The path to the json file containing the Mid.CBF initialization parameters within the data source
}