Chapter 3 Programming Examples RIGOL
MSO7000/DS7000 Programming Guide 3-7
LabVIEW Programming Example
Program used in this instance: LabVIEW2010
Function realized in this example: read the waveform data of CH1 on the screen.
1. Run LabVIEW, create a VI file and name it as MSO7000_Demo.
2. Add controls and create the front panel as shown in the figure below.
3. Open the Block Diagram interface. Click Instrument I/O ïƒ VISA. Add the following functions:
VISA Open, VISA Read, VISA Write, and VISA Close.
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 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.