VccComponentManager Class
- class ska_mid_cbf_mcs.vcc.vcc_component_manager.VccComponentManager(*args: Any, **kwargs: Any)[source]
Bases:
CbfComponentManager
,CspObsComponentManager
Component manager for Vcc class.
- property frequency_band: int
Frequency Band
- Returns:
the frequency band as the integer index in an array of frequency band labels: [“1”, “2”, “3”, “4”, “5a”, “5b”]
- property frequency_band_offset_stream1: int
Frequency Band Offset Stream 1
- Returns:
the frequency band offset for stream 1
- property frequency_band_offset_stream2: int
Frequency Band Offset Stream 2
- Returns:
the frequency band offset for stream 2, this is only use when band 5 is active
- property doppler_phase_correction: List[float]
Doppler Phase Correction
- Returns:
the last received Doppler phase correction array
- property simulation_mode: SimulationMode
Get the simulation mode of the component manager.
- Returns:
simulation mode of the component manager
- start_communicating() None [source]
Establish communication with the component, then start monitoring.
- on() Tuple[ResultCode, str] [source]
Turn on VCC component. This attempts to establish communication with the VCC devices on the HPS.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Return type:
(ResultCode, str)
- Raises:
ConnectionError – if unable to connect to HPS VCC devices
- off() Tuple[ResultCode, str] [source]
Turn off VCC component; currently unimplemented.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Return type:
(ResultCode, str)
- standby() Tuple[ResultCode, str] [source]
Turn VCC component to standby; currently unimplemented.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Return type:
(ResultCode, str)
- configure_band(argin: str) Tuple[ResultCode, str] [source]
Configure the corresponding band. At the HPS level, this reconfigures the FPGA to the correct bitstream and enables the respective band device. All other band devices are disabled.
- Parameters:
argin – the frequency band name
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Return type:
(ResultCode, str)
- configure_scan(argin: str) Tuple[ResultCode, str] [source]
Execute configure scan operation.
- Parameters:
argin – JSON string with the configure scan parameters
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Return type:
(ResultCode, str)
- scan(scan_id: int) Tuple[ResultCode, str] [source]
Begin scan operation.
- Parameters:
argin – scan ID integer
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Return type:
(ResultCode, str)
- end_scan() Tuple[ResultCode, str] [source]
End scan operation.
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Return type:
(ResultCode, str)
- configure_search_window(argin: str) Tuple[ResultCode, str] [source]
Configure a search window by sending parameters from the input(JSON) to SearchWindow self. This function is called by the subarray after the configuration has already been validated, so the checks here have been removed to reduce overhead.
- Parameters:
argin – JSON string with the search window parameters
- Returns:
A tuple containing a return code and a string message indicating status. The message is for information purpose only.
- Return type:
(ResultCode, str)
- update_doppler_phase_correction(argin: str) None [source]
Update Vcc’s doppler phase correction
- Parameters:
argin – the doppler phase correction JSON string