User manual
RIGOL Chapter 3 Programming Examples
3-8 MSO5000 Programming Guide
5. 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.
6. Add string constant in the write buffer areas of the VISA Write function and input the following
instructions in the figure below. 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. Use the VISA Close function to close the VISA resource
after the VISA operation is finished.
7. The data format is TMC header + waveform data points + terminator. The TMC header is in #NXXXXXX
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 #9000001000XXXX, 9 bytes are used to describe the
length of the data, 000001000 represents the length of the waveform data (namely 1000 bytes). Use
the following block diagram to obtain the number of bytes that the TMC header occupies. Ignore the
TMC header and delete the terminator at the end of the waveform data, and transfer the waveform
data to the byte data and display it on the waveform diagram controls.
The available functions used in the above block diagram as as follows: