adc_power_meter
Overview
Controls the power calculations of the ADC channels.
Python Class & Methods Index
- class pyfabil.plugins.tpm.adc_power_meter.AdcPowerMeter(board, fsample=800000000.0, samples_per_frame=864, **kwargs)[source]
Total power meter and RFI detector The total power meter measures the broadband total power level for the input signals. Total power integration time is programmable Integration time is expressed in seconds, total power is returned in ADC counts squared, RMS in ADC counts
Specific methods: initialise(): Initialises everything. Device left with: 10 ms integration time, TP running, no RFI removing
set_intTime(intTime) Sets integration time. Does not modify running status Integration time in seconds (min. 2 us, max 0.05 s)
start_IntTime(intTime) Stops integration, changes integration time and restarts it
start_TP(), stop_TP() Starts and stops TP. Synchronous start not yet supported
enable_rfi_flagging(antennas), disable_rfi_flagging() enables/disables RFI flagging. antennas is a list of antennas where rfi flagging is enabled/disabled
set_broadband_rfi_factor(rfi_factor) sets the rfi factor to control how much RFI flagging occurs.
wait_TpReady() If TP is running, waits for data to become ready. Else returns False
read_TpData() Reads the TP data if ready, else returns empty list
wait_TpData() Waits for data to become ready and returns them. Returns empty list if TP not running
get_RmsAmplitude() Same of wait_TpData(), but returns RMS amplitude instead of power
read_RfiData(): Returns number of RFI affected frames
- disable_rfi_flagging(antennas=range(0, 8))[source]
disables the broadband RFI flagging
- Parameters:
antennas (list(int)) – list antennas where rfi will be enabled
- enable_rfi_flagging(antennas=range(0, 8))[source]
enables the broadband RFI flagging
- Parameters:
antennas (list(int)) – list antennas where rfi will be disabled
- read_TpData()[source]
Read total power data if available Returns empty array if no power is available Output is in units of ADC units squared
- set_broadband_rfi_factor(rfi_factor=1.0)[source]
Sets the rfi factor for broadband rfi detection, the higher the rfi factor the less rfi is detected/flagged
This is because data is flagged if the short term power is greater than the long term power * rfi factor * 32/27
- Parameters:
rfi_factor (double) – the sensitivity value for the rfi detection
- set_intTime(integrationTime)[source]
Set integration time and discard bits. Integration time in seconds
- status_check()[source]
Abstract method where all status checks should be performed :return: Firmware status