Instructions

Chapter 4 Programming Examples RIGOL
DG2000 Programming Guide 4-1
Chapter 4 Programming Examples
This chapter illustrates how to program the signal generator with SCPI commands based on NI-VISA in
Excel, Matlab, LabVIEW, Visual Basic, and Visual C++.
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 (such as GPIB, USB, LAN/Ethernet, or RS232).
The instruments that communicate with NI-VISA through various interfaces are called "Resources". The
VISA descriptor (i.g. resource name) describes the accurate name and location of the VISA resource. Before
programming, please obtain the correct VISA descriptor.
Contents in this chapter:
Programming Preparations
Excel Programming Examples
Matlab Programming Example
LabVIEW Programming Example
Visual Basic Programming Example
Visual C++ Programming Example