Author Topic: Rigol DS1000Z screen capture  (Read 4070 times)

0 Members and 1 Guest are viewing this topic.

Offline FinderTopic starter

  • Supporter
  • ****
  • Posts: 15
  • Country: fi
Rigol DS1000Z screen capture
« on: May 28, 2015, 02:27:09 pm »
Hi, I made a Windows screen capture software for Rigol DS1000Z and MSO1000Z series scopes. It uses ethernet connection to download the data using SCPI commands so it doesn't require any drivers.
Link to my website and the software findersee.fi. Hope someone else finds it useful also, any feedback is appreciated.

EDIT.
This is probably not the best place for this. Was suppose to be in the projects
« Last Edit: May 29, 2015, 09:02:56 pm by Finder »
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Rigol DS1000Z screen capture MOVE TO PROJECTS IF POSSIBLE
« Reply #1 on: May 28, 2015, 05:49:23 pm »
Nice, seems you are basing it on the python script that bingo found in hackaday:
https://www.eevblog.com/forum/testgear/new-rigol-ds1054z-oscilloscope/msg675845/#msg675845

How fast is the capture? The hackaday code takes 18 seconds per screen capture.

Are you planning to release the code?

I did modify the script to work on the DS2000 (no telnet support) using vxi11 by fellow forum member Alex Forencich and by changing the MTU I was able to reduce the capture time to 4 seconds.

It could be modified to support both (terminator length is 2 on DS2000 and 4 i think on DS1000) and changing the "DS2" comparison to account for both models would be easy.

Here is the link to the DS2000 modified script:

https://www.eevblog.com/forum/testgear/python-based-instrument-control/msg676772/#msg676772
 

Offline FinderTopic starter

  • Supporter
  • ****
  • Posts: 15
  • Country: fi
Re: Rigol DS1000Z screen capture MOVE TO PROJECTS IF POSSIBLE
« Reply #2 on: May 28, 2015, 08:00:53 pm »
Yes I am basing it on the python script, but I'm not using pure tcp socket for the communication. The capture time varies a bit fastest I gotten is about 9 seconds and the slowest is 14. The timing could probably be improved by refining the stream to image algorithm. I am planning to release the code once I get the csv capture done and I clean the code a bit  ;).

Your 4 seconds seems really impressive. I will have to see how close I can get mine after optimization.
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Rigol DS1000Z screen capture MOVE TO PROJECTS IF POSSIBLE
« Reply #3 on: May 28, 2015, 08:32:25 pm »
Use wireshark and check the packets to see if they go above 1514 bytes, maybe there is a way to set the telnet library you are using to get the right size. In my case it was 1420 data + the Ethernet, IP, TCP, RCP and VXI-11 protocols overhead.

Raw Telnet doesn't have the RCP and VXI-11 overhead but it does add options on the TCP layer so you have about 66 bytes overhead so the maximum data size should be 1448

So if you can change that it should speed up your capture.
 

Offline FinderTopic starter

  • Supporter
  • ****
  • Posts: 15
  • Country: fi
Re: Rigol DS1000Z screen capture MOVE TO PROJECTS IF POSSIBLE
« Reply #4 on: May 28, 2015, 09:14:11 pm »
Well wireshark tells me the data I have is 1460 bytes so I don't think it can be improved too much. And like I said before I'm not using any telnet library its direct tcp socket with C#.
 

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Rigol DS1000Z screen capture MOVE TO PROJECTS IF POSSIBLE
« Reply #5 on: May 28, 2015, 09:50:05 pm »
Just for giggles, reduce your read size to 1420 bytes at a time and see if it's faster, I think you probably can push it to 1448 read size.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf