User manual

Chapter 4 Programming Examples RIGOL
DP700 Programming Guide 4-1
Chapter 4 Programming Examples
This chapter lists some examples by programming based on NI-VISA in the LabVIEW and Visual C# to
remotely control the power supply.
NI-VISA (National Instrument-Virtual Instrument Software Architecture), developed by NI (National
Instrument), provides an advanced programming interface to communicate with various instruments
through their bus lines. NI-VISA enables you to communicate with the instrument in the same way, without
considering the interface type of the instrument.
Contents in this chapter:
Programming Preparations
LabVIEW Programming
Visual C# Programming Example
Programming Preparations
Before programming, you need to prepare the following tasks:
1. Install Ultra Sigma (PC) software. You can download Ultra Sigma from the official website of RIGOL
(
www.rigol.com) and 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.
2. Use the 9-pin RS232 cable (female-to-female, straight-through) to connect the power supply to the PC
via the RS232 interface on the rear panel. Then, connect to power and power on the power supply.
Note: The RS232 protocol command ends with "\n" for the DP700 series.
3. Set the parameters for the RS232 interface of the power supply. The parameter settings for the RS232
interface are as follows:
- Baud Rate: 9600
- Stop Bits: 8
- Data Bits: 1
- Parity: None
Then, the preparation work for the programming is completed.