EEVblog Electronics Community Forum

Products => Test Equipment => Topic started by: davorin on May 27, 2021, 09:38:57 am

Title: Reading LA data from DS1074Z Plus via SCPI
Post by: davorin on May 27, 2021, 09:38:57 am
Good morning (o;

Trying to read out the waveform data from my DS1074Z Plus via SCPI with a telnet connection.....and according to the SCPI manual it should work like this:

Code: [Select]
:STOP
:WAV:SOUR D0
:WAV:STAR 1
:WAV:STOP 100
:WAV:DATA?

But all I get is:

Code: [Select]
:WAV:DATA?
#9000001000

Any idea why only the header is returned?
Or is a telnet SCPI connection useless for this?

Goal is to reconstruct a screenshot of all available analog and digital channels like DSRemote is doing, but that software doesn't support LA channels.


thansk in advance
richard
Title: Re: Reading LA data from DS1074Z Plus via SCPI
Post by: davorin on May 27, 2021, 10:04:01 am
Indeed SCPI vial telnet is useless...it strips off anything non-ASCII....

lxi-gui from https://github.com/lxi-tools/lxi-tools works fine though:

Title: Re: Reading LA data from DS1074Z Plus via SCPI
Post by: davorin on May 27, 2021, 02:38:16 pm
Some first simple results with pyqtgraph reading digital and analog channels from my DS1104Z Plus (formerly known as DS1074Z Plus ;o):

Title: Re: Reading LA data from DS1074Z Plus via SCPI
Post by: davorin on May 29, 2021, 09:13:27 am
Okay...found an example how to calculate the voltage from BYTE waveform readings in the MSO2000A SCPI manual...

Looks better now...just need to find a way to get rid of the axis grids outside of the measurement area in pyqtgraph (o;

Title: Re: Reading LA data from DS1074Z Plus via SCPI
Post by: RoGeorge on October 26, 2021, 03:26:19 pm
Code: [Select]
:WAV:DATA?
#9000001000

Any idea why only the header is returned?
Or is a telnet SCPI connection useless for this?

Goal is to reconstruct a screenshot of all available analog and digital channels like DSRemote is doing, but that software doesn't support LA channels.

The response format is described in the "DS1000Z_Programming Guide_EN.pdf" manual of the DS1000z from Rigol.
https://www.rigolna.com/products/digital-oscilloscopes/1000z/ (https://www.rigolna.com/products/digital-oscilloscopes/1000z/)

There are many tools already, I think DS1074z is also SIGROK (https://sigrok.org/blog/) compatible, but I don't know if that will use the logic analyzer or the analog data.  https://sigrok.org/wiki/Rigol_DS1000Z_series (https://sigrok.org/wiki/Rigol_DS1000Z_series)

A screen capture can be downloaded without any driver or additional software, i.e.
Code: [Select]
echo ":DISPLAY:DATA? ON,OFF,PNG" | nc -w1 192.168.32.208 5555  | dd bs=1 skip=11 of=image.png
https://hackaday.io/project/6857-master-your-rigol-from-command-line (https://hackaday.io/project/6857-master-your-rigol-from-command-line)
Title: Re: Reading LA data from DS1074Z Plus via SCPI
Post by: davorin on October 26, 2021, 03:48:12 pm
Reminds me to further enhance my python code....

At least looks better than before:

https://raw.githubusercontent.com/richardklingler/rigol/main/images/ds1104zplus.png