KPCI-488LPA-900-01 Rev. A / December 2008
Return to
2-5
Model KPCI-488LPA GPIB Controller Interface Card User’s Manual
Section 2: NI Command Compatible Functions
Microsoft Visual C/C++
To create an application with NI command compatible functions and Microsoft Visual C/C++, follow
these steps:
Step 1: Enter Microsoft Visual C/C++ and open or create a project in which you wish to
use NI command compatible functions
NOTE
The project can be a new or existing one.
Step 2: Include the function declarations and constants file (GPIB.H)
Include
GPIB.H
in the C/C++ source files that call NI command compatible functions by adding the
following statement in the source file:
#include "GPIB.H"
NOTE
NI command compatible function declarations and constants are contained in
GPIB.H
. Use
the functions and constants to develop user self data-acquisition applications.
Step 3: Build your application as follows:
1. Set suitable compile and link options.
2. Select
Build
from the
Build
menu (Visual C/C++ 4.0 and higher).
3. Remember to link the NI command compatible import library
GPIB-32.lib
.
Overview of NI command compatible functions
The NI command compatible functions are grouped into three classes:
• IEEE 488 device-level functions
• IEEE 488 board-level functions
• IEEE 488.2 functions
IEEE 488 device-level functions
contains IEEE 488 device-level functions.
Table 2-1
IEEE 488 device-level functions
Function
Description
ibask
Returns the current value of the selected configuration item.
ibbna
Assigns the access board of the designated device.
ibclr
Sends the GPIB Selected Device Clear (SDC) message to the designated
device.
ibconfig
Sets the value of the selected configuration item.
ibdev
Opens and initializes a device descriptor.
ibeos
Configures the EOS termination mode or character.
ibeot
Enables or disables the action that is setting GPIB EOI line to enable while
the I/O operation is completed.
ibln
Checks if there is an available device on the bus.
ibloc
Sets the device to local control mode.
ibonl
Sets the device online or offline.
ibpad
Sets a device primary GPIB address.