device.spectral_dsa800 module

class device.spectral_dsa800.SpectralAnalyser_DSA800(ip_address, **kwargs)[source]

Bases: VisaHardwareBase

Spectral analyser (resonance experiment).

Model name: RIGOL DSA800

Communication:

  • LAN, using VISA protocol and SCPI commands

SAVE_DIR = PosixPath('/home/runner/saved_data')
property active_trace
amplitaxis()[source]

Return tuple (scale, offset) of active channel amplitude axis [dBm].

property data

Trace data of active trace in format (frequency[Hz], amplitude[dBm]).

fetch_data()[source]

Read all traces from last sweep. Data is stored in property data.

freqaxis()[source]

Return tuple (low, high), frequency range [Hz].

multi_scan(dc, ranges)[source]
save_data()[source]

Save last measured traces to file. Returns filepath.

set_amplitaxis(scale=None, offset=None)[source]

Vertical amplitude axes - scale and offset. Set one or both.

Parameters:
  • scale (float) – amplitude ??? [dBm]

  • offset (float) – amplitude ??? [dBm]

set_freqaxis(low, high)[source]

Horizontal frequency axis.

Parameters:
  • low (float) – lowest frequency [Hz]

  • high (float) – highest frequency [Hz]

set_tracking_generator(active)[source]

Turn on/off output of the tracking generator.

Parameters:

active (bool) – either True or False

tracking_generator()[source]
update_frontend(device_client)[source]