device.oscope_mso5000 module

class device.oscope_mso5000.Oscope_MSO5000(ip_address, **kwargs)[source]

Bases: VisaHardwareBase

Oscilloscope (interferometry experiment).

Model name: RIGOL MSO5000

Communication:

  • LAN, using VISA protocol and SCPI commands

SAVE_DIR = PosixPath('/home/runner/saved_data')
property active_ch

Channel displayed at frontend.

amplitaxis()[source]

FFT: Return tuple (scale, offset) of active channel amplitude axis [dBV].

channelaxis()[source]

Return tuple (scale, offset) for active channel axis [V].

property data

Signal data fetched from active channel (time[s], signal[V]).

property data_fft

FFT data fetched from active channel (frequency[Hz], amplitude[dBV]).

fetch_data()[source]

Stop oscilloscope and read captured signal-waveform and fft-waveform from specified channels. Data is stored in properties data and data_fft.

fftwindow()[source]

FFT: Return window function that is used for active channel.

freqaxis()[source]

FFT: Return tuple (low, high), frequency range of active channel [Hz].

save_data()[source]

Save last fetched signal-waveforms and fft-waveforms. A list of channels can be specified, otherwise all channels are used. Returns tuple of filepaths (signal-waveforms-file, fft-waveforms-file).

Parameters:

channels – iterable or comma separated ints in string, use None to save all availible channels

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

FFT: Amplitude scale and offset of active channel. Set one or both.

Parameters:
  • scale (float) – amplitude per screen square [dBV]

  • offset (float) – amplitude offset from screen center [dBV]

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

Vertical scale and offset of active channel. Set one or both.

Parameters:
  • scale (float) – signal magnitude per screen square [V]

  • offset (float) – offset from screen center [V]

Note the dependency - a change in scale may affect offset value.

set_fftwindow(window)[source]

FFT: Set window function for active channel.

Parameters:

window (str) – One of ‘RECT’, ‘BLAC’, ‘HANN’, ‘HAMM’, ‘FLAT’, ‘TRI’.

set_freqaxis(low, high)[source]

FFT: Horizontal frequency axis of active channel.

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

  • high (float) – highest frequency [Hz]

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

Horizontal scale and offset of time axis. Set one or both.

Parameters:
  • scale (float) – time interval per screen square [s]

  • offset (float) – offset from screen center [s]

Note the dependency - a change in scale may affect offset value.

timeaxis()[source]

Return time axis settings as a tuple (scale, offset), units: s.

update_frontend(device_client)[source]