Rigol MSO2000A Series Programming Manual page 350

Digital oscilloscope
Hide thumbs Also See for MSO2000A Series:
Table of Contents

Advertisement

RIGOL
while
(true)
{
Thread.Sleep( 100 );
visa32.viPrintf(viSession, ":WAV:STATus?\n");
visa32.viScanf(viSession, "%s", strBuild);
if
(strBuild[0] == 'I')
{
}
else
{
}
Return Format
The data returned contains 2 parts: the TMC data description header and the waveform data.
#900000ddddXXXX...
Wherein, dddd denotes the number of the effective waveform points in the data stream.
When reading the internal memory data, the waveform data returned each time might be the data block
in one area of the buffer. Each data block has a TMC description header similar to #9XXXXXXXXX;
wherein XXXXXXXXX denotes the number of the waveform points in this data block. Waveform data in
two adjacent data blocks are consecutive.
The waveform data read can be converted to the voltage of each point of the waveform on the screen
according to the method below.
The figure below shows the waveform data read. First, select "View as hexadecimal only" from the
dropdown list at the right of Buffer; at this point, the waveform data read is displayed in hexadecimal
format; the first 11 figures denote the number of bytes that the "Denoter" holds in the internal memory;
the figures following are the waveform data on the screen and users can convert the waveform data read
to the voltage of each point of the waveform on the screen using the formula (ox63-vertical reference
2-334
//IDLE
visa32.viPrintf(viSession, ":WAV:DATA?\n");
visa32.viRead(viSession, wfmBuf, wfmBuf.Length,
readSum += ( readCnt -12);
readTim++;
Console.WriteLine("{0}: Read {1} Sum {2}"
return
readSum;
visa32.viPrintf(viSession, ":WAV:DATA?\n");
visa32.viRead(viSession, wfmBuf, wfmBuf.Length,
readSum += (readCnt -12);
readTim++;
Console.WriteLine("{0}: Read {1} Sum {2}"
Console.WriteLine("Press any key to read next data."
//Console.ReadKey();
Console.WriteLine("Reading..."
}
out
, readTim, readCnt, readSum);
out
, readTim, readCnt, readSum);
);
);
MSO2000A/DS2000A Programming Guide
2 Command System
readCnt);
readCnt);

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents