DSP TANGO Device

Module for providing the DSP capability for the Pulsar Timing Sub-element.

class ska_pst_lmc.dsp.dsp_device.PstDsp(*args: Any, **kwargs: Any)[source]

A software TANGO device for managing the DSP component of the PST.LMC subsystem.

init_device() None[source]

Initialise the attributes and properties of the PstDsp.

This overrides the SKABaseDevice.

create_component_manager() PstDspComponentManager[source]

Create and return a component manager for this device.

Returns

a component manager for this device.

always_executed_hook() None[source]

Execute call before any TANGO command is executed.

delete_device() None[source]

Delete resources allocated in init_device.

This method allows for any memory or other resources allocated in the init_device method to be released. This method is called by the device destructor and by the device Init command.

handle_monitor_data_update(monitor_data: DspDiskMonitorData) None[source]

Handle monitoring data.

Parameters

monitor_data (DspDiskMonitorData) – the latest monitoring data that has been reported.

diskCapacity() int

Total capacity of the disk that DSP is writing to.

Returns

total capacity of the disk that DSP is writing to, in bytes.

Return type

int

availableDiskSpace() int

Available space on the disk that DSP is writing to.

Returns

available space on the disk that DSP is writing to, in bytes.

Return type

int

diskUsedBytes() int

Get sed space on the disk that DSP is writing to.

This is diskCapacity - availableDiskSpace.

Returns

use space on the disk that DSP is writing to, in bytes.

Return type

int

diskUsedPercentage() float

Get used space on the disk that DSP is writing to.

This is 100.0 * (diskCapacity - availableDiskSpace)/availableDiskSpace.

Returns

use space on the disk that DSP is writing to, in bytes.

Return type

float

dataRecordRate() float

Get current rate of writing to the disk.

Returns

use space on the disk that DSP is writing to, in bytes.

Return type

float

dataRecorded() int

Get number of bytes written during scan.

Returns

number of bytes written during scan.

Return type

int

availableRecordingTime() float

Get current rate of writing to the disk.

Returns

use space on the disk that DSP is writing to, in bytes.

Return type

float

subbandDataRecorded() List[int]

Get the bytes per written for each subband.

Returns

the bytes per written for each subband.

Return type

List[int]

subbandDataRecordRate() List[float]

Get the current rate of writing to disk for each subband.

Returns

the current rate of writing to disk for each subband.

Return type

List[float]

ska_pst_lmc.dsp.dsp_device.main(args: Optional[list] = None, **kwargs: Any) int[source]

Entry point for module.

Parameters
  • args – positional arguments

  • kwargs – named arguments

Returns

exit code

Return type

int