AnsweredAssumed Answered

get waveform data in binary format

Question asked by sblanch on Nov 15, 2012
Latest reply on Dec 10, 2012 by sblanch
Hi all,

Using a tango device server to get information from an oscilloscope by the network I can get the waveform when I use ASCII format. Calling:

+:WAVeform:SOURce CHANnel1;:WAVeform:FORMat ascii;:WAVeform:DATA?+

I get an string:

+8E-03,4E-03,1E-03,1E-03,1E-03,0.0E+00,1E-03,3E-03,8E-03,1.2E-02,1.1E-02,6E-03,2E-03,3E-03,7E-03,...+

This contains the 40000 points of the plot:

!https://www.cells.es/Members/sblanch/Ellipsis/Visa-instruments/waveform-data/at_download!

But when I try the same but in binary format:

+:WAVeform:SOURce CHANnel1;:WAVeform:FORMat word;:WAVeform:DATA?+

The answer doesn't contain all the waveform:

+'#580004\xe4\xfd\xe1\xfd,\xfe\xaa\xfe\xf3\xfe\xbf\xfeI...+

Not 80004 elements follows the header. Worst than that the number of words varies between a few tenths to a thousand, but never the complete waveform.

I have tried to use the +[start\[,size]]+ parameters of the command and try to read more often parts of the waveform, but the signal is triggered more often than what I can check it.

How can I get the complete waveform, like I have with ascii format?  

Outcomes