libgs.hardware.GR_XMLRPCRadio.record_spectrum

GR_XMLRPCRadio.record_spectrum(dt=1, N=100, fdec=1, add_zeroes=False)

Record N spectra then return them. This method returns a future.

To get the result call the future.result(). To stop it call future.abort() #<— note non-standard future call

Parameters:
  • dt (float) – time interval (in seconds) at which to record spectra
  • N (int) – Max number of spectra to record.
  • fdec (int) – Decimation factor
  • add_zeros (bool) – Fill incomplete data with zeroes