Instructions
Chapter 5 Programming Examples  RIGOL 
RSA3000E Programming Guide  5-19 
exit the program. 
Linux Programming Example 
This section illustrates how to program and control the spectrum analyzer to realize the common functions 
in Linux operating system. 
Programming Preparations 
1.  Programming environment: 
Operating system: Fedroa 8 (Linux-2.6.23) 
GCC version: gcc-4.1.2 
2.  Install the VISA library. First, check whether your PC has installed NI's VISA library. If not, download it 
from NI website (
http://www.ni.com/visa/). The installation procedures are as follows: 
Download the VISA library NI-VISA-4.4.0.ISO from the NI website. 
Create a new directory. 
#mkdir NI_VISA 
Mount the isofile 
#mount -o loop -t iso9660 NI-VISA-4.4.0.iso NI_VISA 
Enter the NI_VISA directory to install 
#cd NI_VISA 
#./INSTALL 
Unmount the isofile 
#umount NI_VISA 
After the installation is finished, the default installation path is /usr/local. 
3.  Build communication between the spectrum analyzer and the PC. Use the network cable to connect the 
analyzer to the PC via the LAN interface on the rear panel of the analyzer. You can also use a network 
cable to connect the spectrum analyzer to the local area network where the PC resides. 
After the spectrum analyzer is connected to the PC properly, configure the network address for the 










