Utilities
- utils.process_display(display, show=False, filename=None)[source]
Convert the query of the display byte array into an image.
- Parameters
display – The namedtuple returned from
Rigol_DS100Z().display()
.show (bool) – Draw the display image to a new matplotlib figure.
filename (str) – Save the display image to a file (PNG recommended).
- utils.process_waveform(waveform, show=False, filename=None)[source]
Convert the query of the waveform data into properly scaled Numpy arrays.
- Parameters
waveform – The namedtuple returned from
Rigol_DS100Z().waveform()
.show (bool) – Draw the waveform to a new matplotlib figure.
filename (str) – Save the display image to a file (CSV recommended).
- Returns
A tuple of two Numpy arrays, (xdata, ydata).