Close

v1.0.0 released

A project log for Driverless Rigol DS1054Z screen capture over LAN

Capture the display of a Rigol DS1000Z series oscilloscope by LAN only, using LXI SCPI commands. No USB, no VISA, no IVI and no Rigol drivers required

RoGeorgeRoGeorge 09/30/2016 at 12:543 Comments

First released version, v1.0.0: https://github.com/RoGeorge/DS1054Z_screen_capture/releases

- Querry *OPC? instead of waiting 1 second between commands.
- Added logging file, 'OscScreenGrabLAN.py.log'.

Discussions

S Clark wrote 10/08/2016 at 18:10 point

Hi,

Thanks for your post. That gave me a couple of good ideas.
The following command (yet not optimal) using standard Linux utilities gave me the exact same thing with little effort : 
 echo ":DISPLAY:DATA? ON,OFF,PNG" | nc -w1 192.168.32.208 5555  | dd bs=1 skip=11 of=image.png

(Of course, substitute the IP address with the one of your Rigol scope.)

It obviously lacks error checking, so your version is better for whoever prefers a more user-friendly interaction.

SC

  Are you sure? yes | no

Yann Guidon / YGDES wrote 10/09/2016 at 02:22 point

I love this tiny script :-)

  Are you sure? yes | no

RoGeorge wrote 10/09/2016 at 15:43 point

That's a very nice hack, indeed!

It reminds me that we all live in the prison of our mind. Well, if not "we all", at least I certainly do.
:o)
It also reminds me that "assumption is the mother of all fuckups".

Let me tell you why: After experimenting with SCPI over Telnet, I learned that Telnet is not required for LXI. I did try netcat, but stumble of not knowing how to quit nc from the command line. So I searched and made some tests about how to make netcat to quit after the SCPI answer, but couldn't find how to do it without a keyboard.

Even more than that, I did notice the -w wait parameter in the nc help, but I assumed that -w was a parameter for the socket timeout only. Never thought -w will also quit nc. Then I just documented the possible use of netcat for LXI instruments (https://hackaday.io/project/6857), but never actually try the -w parameter. So that is how my wrong assumption built a mind cage for me, one that I could never left until now.

Thanks for letting me out, S Clark!
:o)

  Are you sure? yes | no