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:


This contains the 40000 points of the plot:


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:


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?