Agilent 4155C/4156C VXIplug&play Driver User’s Guide, Edition 4
5-3
Programming Examples for C++ Users
Programming Basics
Programming Basics
This section provides the basic information for programming using the Agilent
4155/4156 VXI
plug&play
driver.
•
“To Create Your Project Template”
•
“To Create Measurement Program”
To Create Your Project Template
This section explains how to create a project template in the C language. Before
starting programming, create your project template, and keep it as your reference. It
will remove the conventional task in the future programming.
Step 1.
Connect instrument (e.g. Agilent 4155/4156) to computer via GPIB.
Step 2.
Launch the programming software and create a new project. Then, select the Win32
project or the console application for the new project template selection. They will
simplify the programming. Of course, other project template can be used.
Step 3.
Define the followings to the project properties or the project options. See manual or
on-line help of the programming software for defining them.
1. Additional include file search path:
•
directory (e.g. \Program Files\VISA\winnt\include) that stores the
hp4156b.h file and the VISA related include files
2. Additional library search path:
•
directory (e.g. \Program Files\VISA\winnt\lib\msc for Microsoft Visual C++
or \Program Files\VISA\winnt\lib\bc for Borland C++Builder) that stores the
hp4156b.lib file and the VISA related library files
3. Additional project link library:
•
hp4156b.lib
Step 4.
Open a source file (.cpp) in the project, and enter a program code as template. See
Table 5-1 for example. The example uses Microsoft Visual C++.
Step 5.
Save the project as your template (e.g. \test\my_temp).
Содержание 4155C
Страница 3: ......
Страница 13: ...1 Installation...
Страница 18: ...1 6 Agilent 4155C 4156C VXIplug play Driver User s Guide Edition 4 Installation Installing VXIplug play Driver...
Страница 19: ...2 Driver Function Reference...
Страница 89: ...3 Programming Examples for Visual Basic Users...
Страница 147: ...4 Programming Examples for Visual Basic NET Users...
Страница 183: ...5 Programming Examples for C Users...
Страница 225: ...6 Programming Examples for VEE Users...
Страница 271: ...7 Sample Application Programs Using VEE...