Author Topic: Accessing DS1074 via LAN - Examples included  (Read 2256 times)

0 Members and 1 Guest are viewing this topic.

Offline UConn94

  • Contributor
  • Posts: 9
  • Country: us
Accessing DS1074 via LAN - Examples included
« on: September 22, 2015, 10: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). 

 

Offline UConn94

  • Contributor
  • Posts: 9
  • Country: us
Re: Accessing DS1074 via LAN - Examples included
« Reply #1 on: September 22, 2015, 10:38:15 AM »
And here is my VISA example....

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

 

Offline UConn94

  • Contributor
  • Posts: 9
  • Country: us
Re: Accessing DS1074 via LAN - Examples included
« Reply #2 on: September 24, 2015, 10: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..

« Last Edit: September 24, 2015, 11:00:54 AM by UConn94 »
 

Offline awallin

  • Frequent Contributor
  • **
  • Posts: 345
Re: Accessing DS1074 via LAN - Examples included
« Reply #3 on: September 24, 2015, 02:49:36 PM »

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.

 

Offline 8086

  • Super Contributor
  • ***
  • Posts: 1081
  • Country: gb
    • Circuitology - Electronics Assembly
Re: Accessing DS1074 via LAN - Examples included
« Reply #4 on: September 24, 2015, 09:40:29 PM »
Censored LAN IP address? Not sure I see the point of that... :) Is there something I should know about?
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 1042
  • Country: 00
Re: Accessing DS1074 via LAN - Examples included
« Reply #5 on: September 24, 2015, 10:20:15 PM »
I use this: http://www.teuniz.net/DSRemote/
Works fine for me.
The difference between theory and practice is less in theory than
the difference between theory and practice in practice.
Expensive tools cannot compensate for lack of experience.
 

Offline UConn94

  • Contributor
  • Posts: 9
  • Country: us
Re: Accessing DS1074 via LAN - Examples included
« Reply #6 on: September 27, 2015, 01:14:12 AM »
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....

 

Offline UConn94

  • Contributor
  • Posts: 9
  • Country: us
Re: Accessing DS1074 via LAN - Examples included
« Reply #7 on: September 29, 2015, 09:20:22 AM »
Screen shots... developing..
 

Offline lukaq

  • Regular Contributor
  • *
  • Posts: 75
  • Country: si
Re: Accessing DS1074 via LAN - Examples included
« Reply #8 on: September 30, 2015, 02:09:46 AM »
Seems as easy to use as the unit itself


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf