User manual
RIGOL Chapter 3 Programming Examples
3-8 DS4000E 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 controls and input ":WAV:SOUR CHAN1",
":WAV:FORM BYTE" and ":WAV:DATA?" respectively. The first sets the source channel of waveform
data reading to CH1, the second sets the return format of the waveform data to BYTE, and the last
reads the waveform data on the screen. 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 data block header + waveform data + terminator. The TMC header is in
#NX…X format; wherein, # is the TMC header identifier; N following # represents the the length of
the waveform data; and the terminator represents the ending of communication. For example, for
#9000001400XXXX…, "000001400" following "9" indicates that the length of the waveform data
byte is 1400. Use the String Subset and Decimal String To Number functions to get the value of
N.