EasyManuals Logo

Rigol DS2302A Programming Guide

Rigol DS2302A
376 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #350 background imageLoading...
Page #350 background image
RIGOL 2 Command System
2-334 MSO2000A/DS2000A Programming Guide
while (true)
{
Thread.Sleep( 100 );
visa32.viPrintf(viSession, ":WAV:STATus?\n");
visa32.viScanf(viSession, "%s", strBuild);
if (strBuild[0] == 'I') //IDLE
{
visa32.viPrintf(viSession, ":WAV:DATA?\n");
visa32.viRead(viSession, wfmBuf, wfmBuf.Length, out readCnt);
readSum += ( readCnt -12);
readTim++;
Console.WriteLine("{0}: Read {1} Sum {2}" , readTim, readCnt, readSum);
return readSum;
}
else
{
visa32.viPrintf(viSession, ":WAV:DATA?\n");
visa32.viRead(viSession, wfmBuf, wfmBuf.Length, out readCnt);
readSum += (readCnt -12);
readTim++;
Console.WriteLine("{0}: Read {1} Sum {2}" , readTim, readCnt, readSum);
Console.WriteLine("Press any key to read next data." );
//Console.ReadKey();
Console.WriteLine("Reading..." );
}
}
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

Table of Contents

Other manuals for Rigol DS2302A

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Rigol DS2302A and is the answer not in the manual?

Rigol DS2302A Specifications

General IconGeneral
BrandRigol
ModelDS2302A
CategoryTest Equipment
LanguageEnglish

Related product manuals