Recent changes/upgrades of the forum's database made me wonder if the old posts are still fine, so I stumble into this one, which was intended to be a collection of my Rigol scrips. Python-VXI didn't worked for me.
Another script that serves me well (this one is Windows only, but it can be easily ported on Linux, too):
- DS1054Z_data_logger - is displaying and logging the Vavg of all 4 channels of a DS1054Z oscilloscope while saving the data in the PC as a CSV file. The CSV file can be opened or copied and post-processed while the logging is running, no need to wait until the logging has been finished.
The value "9.9E37" is the SCPI value corresponding to the oscilloscope screen displaying "Avg=*****"
This is how the produced CSV file looks like:
YYYY-MM-DD,HH:MM:SS,CH1(Vavg),CH2(Vavg),CH3(Vavg),CH4(Vavg)
2017-03-24,14:35:09,1.133774e-01,9.9E37,9.9E37,9.9E37
2017-03-24,14:35:19,1.112045e-01,9.9E37,9.9E37,9.9E37
2017-03-24,14:35:29,5.585327e-02,9.9E37,9.9E37,9.9E37
2017-03-24,14:35:39,9.314423e-02,9.9E37,9.9E37,9.9E37
2017-03-24,14:35:49,1.023407e-01,9.9E37,9.9E37,9.9E37
2017-03-24,14:35:59,1.030106e-01,9.9E37,9.9E37,9.9E37
And its CMD capture: