Chapter 4 GPIB/GPIB-488.2 Library
© National Instruments Corporation 4-13 LabWindows/CVI Standard Libraries
GPIB Function Reference
Most of the functions in the GPIB/GPIB-488.2 Library are described in the software reference
manual that you received with your GPIB board. This section contains descriptions only for the
Device Manager functions, the callback installation functions, and the functions for returning the
thread-specific status variables.
Note: ResetDevs is not available in LabWindows/CVI. This function was available in a
previous LabWindows version.

CloseDev

int result = CloseDev (int Device);
Purpose
Closes a device.
Parameter
Input Device integer The device to be closed.
Return Value
result integer Result of the close device
operation.
Return Codes
-1 Error—cannot find device.
0 Success.
Using This Function
Takes a device offline. CloseDev performs an ibloc, then an ibonl with a value of zero.
Device is the device descriptor returned when the device was opened with OpenDev. If
CloseDev cannot find the device descriptor in its table, a -1 is returned. CloseDev should
be used only in conjunction with OpenDev. Never call CloseDev with a device descriptor
obtained by calling ibfind.