device.oscope_mso5000 module¶
- class device.oscope_mso5000.Oscope_MSO5000(ip_address, **kwargs)[source]¶
Bases:
VisaHardwareBaseOscilloscope (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.
- 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
dataanddata_fft.
- 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]