EEVblog Electronics Community Forum

Electronics => Projects, Designs, and Technical Stuff => Topic started by: UConn94 on September 22, 2015, 12:36:28 am

Title: Accessing DS1074 via LAN - Examples included
Post by: UConn94 on September 22, 2015, 12:36:28 am
I am the new owner of a Rigol DS1074, and I knew I had to see if I can remote access the scope.  I started off with the demo from the Rigol Programming Guide using LabVIEW VISA drivers.  Pretty straight forward.  Then did some poking around the internet, and the rumo5r was the 'scope was accessible via port 5555.  Also telnet friendly.  Putting these two together, I thought I would try using TCP connection on port 5555 using the commands in the programming guide.  It works, and here is the LabVIEW code (simple example). 

Title: Re: Accessing DS1074 via LAN - Examples included
Post by: UConn94 on September 22, 2015, 12:38:15 am
And here is my VISA example....

Wireshark confirms that the commands are terminated with new-line.

Title: Re: Accessing DS1074 via LAN - Examples included
Post by: UConn94 on September 24, 2015, 12:58:07 am
I am just getting started with this, second sit down with the new scope.  Did a little bit more coding, and captured my first waveform - the scope signal source on the bottom right.  Super easy to do.  If there is anyone interested in code examples, I'll continue on providing them, otherwise I will wait until I have a full operational network remote control panel up and running.  Maybe I post my project on my website.  What is posted here should be enough for anyone who is also a programmer to remote the scope.

First thing I did is a :MEAS command to get the waveform frequency.  That worked.  Next I did a data read, as described from page 2-208 of the Programming guide(which can be found on the Rigol website).

The data is in ascii(Unsigned 8 bit).  Simple LabVIEW string to byte array did the trick.  Next - properly scale the axis on the graph..

Title: Re: Accessing DS1074 via LAN - Examples included
Post by: awallin on September 24, 2015, 04:49:36 am

Does anyone have a python library for Rigol scopes using vxi11 ?
https://github.com/python-ivi/python-vxi11
(over ethernet or USB, I guess both should work)

I got started with this using a DS2000, but it would be great if there would be a community effort and it would work with all/most Rigol's speaking SCPI.

Title: Re: Accessing DS1074 via LAN - Examples included
Post by: 8086 on September 24, 2015, 11:40:29 am
Censored LAN IP address? Not sure I see the point of that... :) Is there something I should know about?
Title: Re: Accessing DS1074 via LAN - Examples included
Post by: Karel on September 24, 2015, 12:20:15 pm
I use this: http://www.teuniz.net/DSRemote/ (http://www.teuniz.net/DSRemote/)
Works fine for me.
Title: Re: Accessing DS1074 via LAN - Examples included
Post by: UConn94 on September 26, 2015, 03:14:12 pm
I have now completed the :DISP:DATA? to image, and export image to BMP/JPG/PNG. 

Screenshot from program included.  Getting to this point, I can do just about anything that I want to do with this scope.

Just finalizing my command list for this scope, there are some conditionals with some of the commands I am working through.  I can publish my command list if there is interest here.  I am doing this for a break from my FPGA stuff....

Title: Re: Accessing DS1074 via LAN - Examples included
Post by: UConn94 on September 28, 2015, 11:20:22 pm
Screen shots... developing..
Title: Re: Accessing DS1074 via LAN - Examples included
Post by: lukaq on September 29, 2015, 04:09:46 pm
Seems as easy to use as the unit itself