User Manual 44
EAR99 technology subject to restrictions on copyrights page.
3.5 Programming examples
This section lists examples of programming with SCPI commands based on
NI-VISA or Socket in Visual C ++, Visual Basic, MATLAB, Python, and more.
NI-VISA-based programming examples
1. First confirm that your computer has installed the NI VISA library (NI
website can be downloaded from http://www.ni.com). The default
installation path in this article is C: \Program Files\IVI Foundation\VISA.
2. This article mainly uses the power of the USB interface and PC
communications, some examples involve the use of LAN interface. Please
use the USB cable to connect the USB Device port on the rear panel of the
power supply to the USB port on the PC. You can also use the LAN
interface to communicate with the PC.
3. After the power is correctly connected to the PC for the first time,
power on the instrument. At this time, the
Hardware Update
Wizard dialog
box will pop up. Follow the instructions of the wizard to install the "USB
Test and Measurement Device".
At this point, programming preparation is completed. The following will
detail the Visual C + +, Visual Basic and MATLAB development
environment programming examples.
Visual C ++ programming examples
Environment:
Win7 32bit system, Visual Studio
Example content:
Using NI-VISA, access control devices via