20.01.2015 Views

Programming Guide DS2000 Series Digital Oscilloscope

Programming Guide DS2000 Series Digital Oscilloscope

Programming Guide DS2000 Series Digital Oscilloscope

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3 <strong>Programming</strong> Demos RIGOL<br />

5. The data format is TMC header + waveform data points + terminator. The TMC<br />

header is in #NXXXXXX format, wherein, # is the TMC header denoter, N<br />

represents that there are N bytes following which describes the length of the<br />

waveform data points in ASCII character, and the terminator represents the<br />

ending of the communication. For example, for #9000001400XXXX, 9 bytes are<br />

used to describe the length of the data, 000001400 represents the length of the<br />

waveform data (namely 1400 bytes). Use the String Subset and Decimal<br />

String To Number functions to get the value of N.<br />

To get the length of the effective waveform data.<br />

6. Convert the character data into array format using the String To Byte Array,<br />

namely displaying the waveform data on the Waveform Graph control and<br />

then remove the TMC data header using the Array Subset function.<br />

<strong>DS2000</strong> <strong>Programming</strong> <strong>Guide</strong> 3-15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!