How to save waveform data onto PC as a csv file? #5638
-
Hi, I'm trying to write a driver for the Keysight DSOX4104A oscilloscope and was wondering if there is a way to save the displayed waveform data to a csv file, not locally but to the PC controlling the instrument. Under the programmer's manual for the oscilloscope, the section on Alternatively, is there a way to directly read out the current waveform data from the oscilloscope to plot it on the PC? This may or may not be specific to this particular oscilloscope but any help would be appreciated! Thanks in advance. :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Normally I would expect the oscilloscope to have a command to enable you to read back a waveform as data to the computer. For instance the Infinium driver here https://github.com/microsoft/Qcodes/blob/main/src/qcodes/instrument_drivers/Keysight/Infiniium.py#L227 uses |
Beta Was this translation helpful? Give feedback.
Normally I would expect the oscilloscope to have a command to enable you to read back a waveform as data to the computer. For instance the Infinium driver here https://github.com/microsoft/Qcodes/blob/main/src/qcodes/instrument_drivers/Keysight/Infiniium.py#L227 uses
:WAV:DATA?
to read back a waveform. QCoDeS is designed for you to build parameters that enables you to get the data into memory calling get on the parameter and storing that in a qcodes dataset not so much to directly fetch csv files from the ossiloscope. But when you do store it as a qcodes dataset that can be exported to a csv file using the dataset.export method