User manual

Chapter 3 Programming Examples RIGOL
DS4000E Programming Guide 3-15
Visual C++ 6.0 Programming Example
Program used in this instance: Microsoft Visual C++ 6.0
Function realized in this instance: searching for the instrument address, connecting to the instrument,
sending commands, and reading return values.
1. Run Microsoft Visual C++ 6.0. Create a MFC project based on a dialog box and name it as demoIDN in
this instance.
2. Click Project Settings to open the Project Settings dialog box. Select Code Generation from
the Category drop-down list box in the C/C++ tab; select Debug Multithreaded DLL from the
Use run-time library drop-down list box. Click OK to close the dialog box.
3. Click Project Settings to open the Project Settings dialog box. In the dialog box, click the Link
tab, add "visa32.lib" under Object/library modules, then click OK to close the dialog box.
4. Click Tools Options to open the Options dialog box.
1) Select Include files from the drop-down list box under Show directories for. Double click the
empty space under Directories to enter the specified path of Include filesC:\Program Files\IVI
Foundation\VISA\WinNT\include. Click OK to close the dialog box.