RIGOL 3 Programming Demos
3-8 MSO2000A/DS2000A Programming Guide
4. Connect the VISA resource name with the VISA Open. Then, connect the VISA resource name
outputs of all the functions with the VISA resource name and connect the error output with the
error input as shown in the figure below.
5. Add text boxes in the write buffer areas of the VISA Write control and input ":WAV:FORM BYTE" and
":WAV:DATA CHAN1" respectively. The former sets the waveform reading format to BYTE and the
latter reads the screen waveform data. Waveform data is read through the VISA Read function
which requires users to input the total number of bytes to be read. In this example, the total number
of bytes of waveform data to be read is less than 2048. Close the VISA resource after the VISA
operation is finished.
6. The data format is TMC header + waveform data points + terminator. The TMC header is in #NX…X
format; wherein, # is the TMC header denoter, N represents that there are N bytes following. The
length of the waveform data points is described in ASCII character, and the terminator represents the
ending of the communication. For example, for : #9000001400XXXX, 9 bytes are used to describe the
length of the data, 000001400 represents the length of the waveform data (namely 1400 bytes). Use
the String Subset and Decimal String To Number functions to get the value of N.