/rigol_long_mem

Download a million samples from Rigol DS1052E via usbtmc

Primary LanguagePython

Capture full memory (1M samples) from a Rigol DS1052E.

Based upon http://www.cibomahto.com/2010/04/controlling-a-rigol-oscilloscope-using-linux-and-python/ and modified to support deep memory (a million samples).

Deep memory is finicky, and this was a bit difficult to get working even making use of the instructions on Rigol's site. In the end I found a sequence of commands that appear to work. There are two sample scripts. One saves the waveform as a WAV (audio) file and the other plots a spectrogram. When you run the scripts, the scope is put into SINGLE trigger mode. Once it is triggered, the waveform data is downloaded. Other trigger modes (e.g. NORMAL or AUTO) do not appear to work properly, even when acquisition is stopped before waveform download.

The save_as_wav.py script is fun because you can plug a wire into the scope, record the entire AM or FM spectrum, and play it back as audio. Sounds cool.