Sat Mar 26 16:07:07 EDT 2011

Rigol remote control using usbtmc

Quite straightforward.  It's almost like a serial terminal, but usbtmc
seems to be message based, and there is timing information.  However
using the character device, all of the complexities of the usbtmc
protocol are hidden.

I'm using this[1] quick-hack to query the device:

  tmc <command>              # send command
  tmc -r <command>           # .. and print reply

Useful commands

*IDN?   Identitiy
*RST    Reset
:RUN    Start capturing / wait for trigger
:STOP   Stop capturing
:AUTO   Autoset

:TRIG:EDGE:SWE SING   Single shot
:TRIG:EDGE:SWE AUTO   Continuous display

To get waveform data:


That first command I got from here[2].  I didn't find it in the
manual.  The second one only makes the 2.05 SP2 crash.

I wonder how to download the entire data buffer..  Manual doesn't seem
to be complete.

Btw, it's great to have [1] sending ":RUN" to the scope to arm the
trigger, with that command bound to a key in emacs.

[1] http://zwizwa.be/darcs/pool/src/tmc.c
[2] http://www.cibomahto.com/2010/04/controlling-a-rigol-oscilloscope-using-linux-and-python/