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(mask), disable_RFI() enables/disables RFI flagging. Mask selects input signals that flag data
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
- 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_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