6 Remote control
6.3 Basic VISA interface programming method
88
Fig. 6.2 Main menu buttons and main menu
In the [Settings] dialog box shown in Fig. 6.3, select [Network Settings] and set the "IP Address", "Subnet
Mask" and "Gateway" to the subnet where the main controller is located. The subnet in which the main
controller is located can be set.
Figure 6.3 LAN interface setting
Ensure that monitoring receiver is physically connected properly via 10Base-T LAN or 100Base-T
LAN cable
Since the monitoring receiver only supports the construction of a single local area network control
system, and only supports the setting of static IP addresses, not DHCP, and does not support access to
hosts through DNS and domain name servers, it does not require the user to modify the subnet mask,
which is fixed to: 255.255.255.0 within the instrument.
6.3 Basic VISA interface programming method
The following is an example of how to use the VISA library to implement the basic method of instrument
programming. Take the C++ language as an example.
Installing the VISA library
…………………………………………………………………………98
I n i t i a l i zi n g t h e c o n t r o l l e r
I n i t i a l i z e t h e i n s t r u m e n t
… … … … … … … … … … … … … … … … … … … … … … … … … 9 8
Send setting command
…………………………………………………………………………99
Read the state of measuring instrument
Read frequency scale
……………………………………………………………………………99
6.3.1 Installing the VISA Library
It is necessary to install VISA library to realize remote control. Among them, the VISA library
encapsulates the lower-level transfer functions of the VXI, GPIB, LAN and USB interfaces, which can be
Note