Friday, January 9, 2015

Accessing the Rigol DS1054Z Oscilloscope via TCP

After several attempts at searching for how to access my DSO via TCP, I finally broke down and did a port scan.

The first thing I noticed was that the scan locked up my scope... but not before finding several open ports.  Most notably, port 5555.  I reset the scope and carried on.

Armed with the DS1000Z Programming Guide from their website, I was very quickly controlling and reading from the scope!
$ telnet 192.168.1.40 5555
Trying 192.168.1.40...
Connected to 192.168.1.40.
Escape character is '^]'.
:STOP
:WAV:FORMAT ASCII
:WAV:DATA?
#90000159933.999684e-02,-4.000316e-02,-3.159046e-06...
The Programming Guide has all the details.  Most notably, it appears that data capture is always returned as a subsample of 1200 points; you don't get the whole buffer.

On the plus side, it seems reasonably fast, so it's likely to be good enough for most purposes... you'll just need to get the USB stick out when you want the complete buffer contents.

No comments:

Post a Comment