Rigol DS2000A Series Spezifikationen Seite 364

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 390
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 363
RIGOL 2 Command System
2-348 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
Seitenansicht 363
1 2 ... 359 360 361 362 363 364 365 366 367 368 369 ... 389 390

Kommentare zu diesen Handbüchern

Keine Kommentare