Specifications
3 Programming Demos RIGOL
DS2000 Programming Guide
3-1
3 Programming Demos
This chapter lists some programming demos to illustrate how to use commands to
realize the common functions of the oscilloscope in the development environments of
C#, Excel, LabVIEW, Matlab, Visual Basic 6.0 and Visual C++ 6.0. All the demos are
based on VISA (Virtual Instrument Software Architecture).
VISA is an API (Application Programming Interface) for controlling instruments. It is
convenient for users to develop testing applications which are independent of the
types of the instrument and interface. Note the "VISA" mentioned here is NI
(National Instrument)-VISA. NI-VISA is an API written by NI based on VISA
standards. You can use NI-VISA to realize the communication between the
oscilloscope and the PC via instrument buses such as USB and LAN. As VISA has
defined a set of software commands, users can control the instrument without
understanding the working state of the interface bus. For more details, please refer
to the NI-VISA Help.
A typical VISA application contains the following steps:
1. Build up communication for sources that already exist.
2. Configure the sources (for example the baud rate).
3. Turn the communication resource off.
The main topics of this chapter:
Programming Preparations
C# Programming Demo
Excel Programming Demo
LabVIEW Programming Demo
Matlab Programming Demo
Visual Basic 6.0 Programming Demo
Visual C++ 6.0 Programming Demo