Sunday, May 21, 2017

Screen capture, on Linux, from Rigol DS1052E oscilloscope

Nothing fancy, just followed the code and description from here, deployed the needed libs on another Linux laptop I have, and voilĂ :

...a nice picture with zoom capabilities.

Had some initial problems with code in the article, had I followed the thread in the same and could had it fixed sooner. Basically the scope returns a little more data, 610 instead of 600, than expected by the Python plot function, so the following needs a change in the code:

#time = numpy.arange(-305.0/50*timescale, 305.0/50*timescale, timescale/50.0)
#time = time[0:610:1]

Where is 300 on the original is now 305 and where in the original code is 600, should be 610.

The image on the scope screen is the following:



The scope being detected as USB device:


This is running on Linux Mint with the following kernel: 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:58:04 UTC 2016 i686 i686 i686 GNU/Linux


Have a nice week!