RIGOL Chapter 4 Programming Demos
4-14 DP800 Programming Guide
Visual C++ Programming Demo
The program used in this demo: Microsoft Visual C++ 6.0
The functions realized in this demo: search for the instrument address, connect the instrument, send
command and read the return value.
1 Run Microsoft Visual C++ 6.0, create a MFC project based on dialog box and name it as
DP800_Demo_VC。
2 Click ProjectSettings and add visa32.lib in the Link tab in the pop-up interface manually.
3 Click ToolsOptions and add the Include and Lib paths in the Directories tab in the pop-up
interface.
Select Include files in Show directories for and double-click the blank in Directories to add the
path of Include: C:\Program Files\IVI Foundation\VISA\WinNT\include.
Select Library files in Show directories for and double-click the blank in Directories to add the
path of Lib: C:\Program Files\IVI Foundation\VISA\WinNT\lib\msc.
Note:
The two pathes added here are related to the NI-VISA installation path on your PC. Here, the NI-VISA
is installed under C:\Program Files\IVI Foundation\VISA.