Johannes Bauer <dfnsonfsdu...@gmx.de> writes:

> Hi there,

Hi Johannes,

> my question only has indirectly to do with Sigrok. I tried using it
> together with my Rigol DS2202, but really didn't get satisfactory
> results with it. Namely, it always reset the sampling rate to insanely
> low values (I need very high sample rate for my appliacation). So I used
> a script that directly opens a TCP/IP connection on the LXI port and
> followed the Rigol DS2000 Programming Guide.
>
> What is described in the PDF and what I see on the oscilloscope differs
> a WHOLE lot, so therefore I figure someone on here might be able to help

Could you describe the differences you saw, sounds interesting?

> me. I had it (kind of) working, but rather slow transmission and some

At least via USB reading data from a DS2000 is painfully slow, about 200
KB/sec, imagine reading a 56 MB sample buffer that way...

No idea whether it is faster/slower via Ethernet, could be either way.

> commands didn't work, so I decided to upgrade from my 01.01 firmware to

There are some order dependencies for commands, and indeed some do not
seem to work at all or only if the scope is in running state.

> 03.01. Big mistake, now it really doesn't work at all anymore :-( Here's
> a log hexdump: http://pastebin.com/jbGkQ9P7

I tried via USB (using Rigols Ultra Sigma tool that in turn uses the
NIVISA libs), on firmware 00.03.04.SP1, it worked.

Please note that you missed the initial ':' on the STOP command, and I
think that is unnecessary anyway, after a singleshot the scope is bound
to be stopped. ;-)

See below for the log:

-> *IDN?
<- (Return Count:53)
RIGOL TECHNOLOGIES,DS2202,DS2##########,00.03.04.SP1

-> :SINGLE
-> :TRIG:STAT?
<- (Return Count:5)
STOP

-> :STOP
-> :ACQ:MDEP?
<- (Return Count:6)
70000

-> :WAV:MODE RAW
-> :WAV:FORM BYTE
-> :WAV:POIN 70000
-> :WAV:SOUR CHAN1
-> :WAV:RES
-> :WAV:BEG
-> :WAV:STAT?
<- (Return Count:11)
IDLE,70000

-> :WAV:DATA?
<- (Return Count:70012)
#900007000066666566666666665666666666666666666656566666666666 [snip]


So either adding the ':' in front of the STOP command fixes it for you
or there are "interesting" things happening via Ethernet that are not
happening via USB.


Happy hacking,

MGri
-- 
Mathias Grimmberger <m...@zaphod.sax.de>
Eat flaming death, evil Micro$oft mongrels!

------------------------------------------------------------------------------
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to