Instructions

Table Of Contents
RIGOL Chapter 3 Programming Examples
3-2 RSA5000 Programming Guide
Programming Instructions
This section introduces the problems that might occur during the programming process as well as their
solutions. If these problems occur, please resolve them according to the corresponding instructions.
1. When you build a working environment via the network, it is recommended that you build a pure local
area network.
2. If the local area network environment is complicated (e.g. many devices and broadcast messages
exist), it is recommended that you add some fault tolerance during the programming process. For the
details, refer to the "InstrWriteEx()" and "InstrReadEx()" for instrument write/read operations with
exception handling functions in "
Visual C++ 6.0 Programming Example".
3. The socket programming port No. of this device is 5555.
Programming Preparations
The programming preparations introduced here are only applicable to programming by using Visual C++
6.0, Visual Basic 6.0, and LabVIEW 2010 development tools in Windows operating system. For the
preparations of programming in Linux operating system, refer to "
Programming Preparations" in "Linux
Programming Example
".
First, check whether your PC has installed NI's VISA library. If not, download it from
http://www.ni.com/visa/. In this manual, the default installation path is C:\Program Files\IVI
Foundation\VISA.
Connect spectrum analyzer to the PC via the USB interface of the analyzer. Use the USB cable to connect
the analyzer to the PC via the USB DEVICE interface on the rear panel of the analyzer.
After the analyzer is connected to the PC properly, start the analyzer. In this case, "Found New Hardware
Wizard" dialog box appears on the PC. Please install "USB Test and Measurement Device (IVI)" according to
the wizard.
By now, the programming preparations are complete. The following parts will make a detailed introduction
about the programming instances in the Visual C++ 6.0, Visual Basic 6.0, and LabVIEW 2010 development
environment.