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

0 Members and 1 Guest are viewing this topic.

Offline UConn94Topic starter

  • Newbie
  • Posts: 9
  • Country: us
Accessing DS1074 via LAN - Examples included
« 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). 

 

Offline UConn94Topic starter

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

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

 

Offline UConn94Topic starter

  • Newbie
  • Posts: 9
  • Country: us
Re: Accessing DS1074 via LAN - Examples included
« Reply #2 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..

« Last Edit: September 24, 2015, 01:00:54 am by UConn94 »
 

Offline awallin

  • Frequent Contributor
  • **
  • Posts: 694
Re: Accessing DS1074 via LAN - Examples included
« Reply #3 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.

 

Offline 8086

  • Super Contributor
  • ***
  • Posts: 1084
  • Country: gb
    • Circuitology - Electronics Assembly
Re: Accessing DS1074 via LAN - Examples included
« Reply #4 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?
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2216
  • Country: 00
Re: Accessing DS1074 via LAN - Examples included
« Reply #5 on: September 24, 2015, 12:20:15 pm »
I use this: http://www.teuniz.net/DSRemote/
Works fine for me.
 

Offline UConn94Topic starter

  • Newbie
  • Posts: 9
  • Country: us
Re: Accessing DS1074 via LAN - Examples included
« Reply #6 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....

 

Offline UConn94Topic starter

  • Newbie
  • Posts: 9
  • Country: us
Re: Accessing DS1074 via LAN - Examples included
« Reply #7 on: September 28, 2015, 11:20:22 pm »
Screen shots... developing..
 

Offline lukaq

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


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf