5
Programming Examples
This chapter illustrates how to control the instrument by programming in LabVIEW,
Visual Basic, and Visual C++. These examples are programmed based on Virtual
Instrument Software Architecture (VISA) library.
5.1
Programming Preparations
Before programming, you need to prepare the following tasks:
You can log in to the RIGOL official website (
) to download the
software. Then install the software according to the installation wizard. After Ultra
Sigma is installed successfully, NI-VISA library will be completely installed
automatically. In this manual, the default installation path is C:\Program Files\IVI
Foundation\VISA.
In the manual, the instrument communicates with the PC via the USB interface.
Connect the USB Device interface on the rear panel of the instrument to the PC by
using the USB cable. After the instrument is properly connected to the PC, power on
the instrument to start it.
The following parts will make a detailed introduction about the programming
examples in LabVIEW, Visual Basic, and Visual C++.
5.2
LabVIEW Programming Example
Program used in this example: LabVIEW 2009
Function realized in this example: search for the instrument address, connect the
instrument, send command, and read the returned value.
1. Run LabVIEW, and then create a VI file named Demo_LABVIEW.
2. Add controls in the front panel interface, including the Address, Command, and
Return field as well as the Connect, Write, Read, and Exit buttons.
Programming Examples
Copyright ©RIGOL TECHNOLOGIES CO., LTD. All rights reserved.
125
Summary of Contents for DP2000 Series
Page 1: ......
Page 137: ...d Exit Programming Examples Copyright RIGOL TECHNOLOGIES CO LTD All rights reserved 129...
Page 145: ......