station module
Wrappers for the station Tango devices.
- aiv_utils.station.check_channeliser_rounding(sps_station, tpms)
Check that the channeliserRounding and cspRounding values of the TPMs
- aiv_utils.station.check_csp_rounding(sps_station, tpms)
Check that the cspRounding values of the station is applied to the last TPM.
- aiv_utils.station.check_fpga_times(tpms)
Check that the FPGA times of all TPMs are within 1 second of each other and the reference time is identical.
- aiv_utils.station.check_last_tpm_csp_destination(station, csp_ingest='either')
Check that the last TPM’s CSP destination IP matches the station’s CSP Ingest IP or DAQ Receiver IP.
- aiv_utils.station.check_outputing_to_bandpass_daq(bandpass_daq)
Check that there is data being output to the bandpass daq and that it is running.
- aiv_utils.station.check_ppsdelays(tpms)
Check that the PPS delays of all TPMs are within 1 unit of each other.
- aiv_utils.station.check_spead_format(tpms)
Check that all TPMs are using the ‘SKA’ SPEAD format.
- aiv_utils.station.check_static_time_delays(sps_station, tpms)
Check the static time delays of the TPM match the TelModel values after being quantiesd to the nearest 1.25 ns which is the sampling rate of the TPM.
- aiv_utils.station.check_tile_programming_state(tpms)
Check that all TPMs are in the ‘Synchronised’ tileProgrammingState.
- aiv_utils.station.check_tpm_daisy_chain(tpms)
Check that the TPMs are daisy-chained correctly by verifying that each TPM’s destination IP matches the next TPM’s source IP.
- aiv_utils.station.check_tpm_lmc_destination(station)
Check that the TPMs’ LMC destination IP matches the station’s DAQ Receiver IP.
- aiv_utils.station.disable_rfi_blanking(station_names)
Disable RFI blanking for the stations with RFI factor reset to 1.0. If the command execution fails then raise an error.
- aiv_utils.station.enable_rfi_blanking(station_names, rfi_factor=None)
Enable RFI blanking for the stations with RFI factor set to the given value. If the command execution fails, revert the changes made and raise an error.
- aiv_utils.station.get_devices(station)
Returns station, subracks, tpms and daqs Tango devices for a given station name.
- aiv_utils.station.get_station_property(station, desired_property)
Get a property from the station.
- aiv_utils.station.integrated_data_capture(station, daq, integration_time)
Integrate the channel data and yield the integrated data samples.
- aiv_utils.station.is_station_initialised(station, csp_ingest='either')
Assert that the station is initialised.
This function currently checks TPM tileProgrammingState state, FPGA time, FPGA reference time, SPEAD format, and that channeliser and CSP rounding are consistent between SpsStation and TPMs.
- Parameters:
station (
str|SPSDevices) – The station to check.csp_ingest – Check if the station’s CSP Ingest is set to the ip of the “csp”, “daq” or “either”
- Return type:
- Returns:
True if the station is initialised to our satisfaction
- aiv_utils.station.parse_capture_events(events, nof_tiles)
Parse the integrated data capture events and return the offset, count and filename of the integrated data samples.
- aiv_utils.station.station_summary(tpms)
Return a summary of the station state as a pandas DataFrame.
- aiv_utils.station.tpms_read_attr_concat(tpms, attr, num_adcs=512)
Read a concatenated value from the TPMs in parallel.
- Return type: