API
Daq handler
This module implements the DaqServer part of the MccsDaqReceiver device.
- class DaqHandler[source]
An implementation of a DaqHandler device.
- create_plotting_directory(parent, station_name)[source]
Create plotting directory structure for this station.
- generate_bandpass_plots(plotting_directory, station_name, cadence)[source]
Generate antenna bandpass plots.
- get_status()[source]
Provide status information for this MccsDaqReceiver.
- This method returns status as a json string with entries for:
Running Consumers: [DaqMode.name: str, DaqMode.value: int]
Receiver Interface: “Interface Name”: str
Receiver Ports: [Port_List]: list[int]
Receiver IP: “IP_Address”: str
Bandpass Monitor: “Monitoring Status”: bool
- property initialised: bool
Return whether the DAQ is initialised.
- Returns:
whether the DAQ is initialised.
- start(modes_to_start)[source]
Start data acquisition with the current configuration.
A infinite streaming loop will be started until told to stop. This will notify the client of state changes and metadata of files written to disk, e.g. data_type.`file_name`.
- start_bandpass_monitor(argin)[source]
Begin monitoring antenna bandpasses.
- Parameters:
argin (
str
) –A dict of arguments to pass to start_bandpass_monitor command.
- plot_directory: Plotting directory.
Mandatory.
- monitor_rms: Flag to enable or disable RMS monitoring.
Optional. Default False. [DEPRECATED - To be removed.]
- auto_handle_daq: Flag to indicate whether the DaqReceiver should
be automatically reconfigured, started and stopped during this process if necessary. Optional. Default False. [DEPRECATED - To be removed.]
- cadence: Number of seconds over which to average data.
Optional. Default 0 (returns snapshots).
- Yields:
Taskstatus, Message, bandpass/rms plot(s).
- Return type:
Iterator
[tuple
[TaskStatus
,str
,Optional
[str
],Optional
[str
],Optional
[str
]]]- Returns:
TaskStatus, Message, None, None, None