User manual

Chapter 3 Programming Examples RIGOL
RSA3000 Programming Guide 3-1
Chapter 3 Programming Examples
This chapter lists some programming examples to illustrate how to use commands to realize the common
functions of the spectrum analyzer in the development environments such as Visual C++ 6.0, Visual Basic
6.0, and LabVIEW 2010. Also, the chapter lists some examples to illustrate how to control the spectrum
analyzer to realize the common functions in Linux operating system. These examples are programmed
based on NI-VISA library.
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 realize the communication between the analyzer and PC
through instrument buses (such as USB). VISA defines a set of software commands with which users can
control the instrument without the need to understand how the interface bus works. For details, please
refer to the NI-VISA Help.
Contents in this chapter:
Programming Instructions
Programming Preparations
Visual C++ 6.0 Programming Example
Visual Basic 6.0 Programming Example
LabVIEW 2010 Programming Example
Linux Programming Example