gpibclose(3) CLIX gpibclose(3)
NAME
gpib_close - Closes a General Purpose Interface Bus (GPIB) channel
LIBRARY
Intergraph Device Library (libix.a)
SYNOPSIS
#include <sys/xio/xerr.h>
int gpib_close(
int channel );
PARAMETERS
channel An integer representing a GPIB channel
DESCRIPTION
The gpib_close() function frees the General Purpose Interface Bus (GPIB)
channel that was previously allocated with gpib_open(). The close cancels
all outstanding control, transfer, and interrupt requests queued for the
channel. Current transfers are also aborted.
RETURN VALUES
Upon successful completion, a value of 0 is returned. Otherwise, one of
the following failure codes is returned.
ERRORS
The gpib_close() function will fail if one of the following is true:
[XIO_FAILURE]
The system does not contain the driver needed to support this
request.
[GPIB_OUT_OF_RANGE]
The specified channel is beyond the maximum allowed.
[GPIB_NOT_OPEN]
The specified channel is not open.
[GPIB_NOT_OWNER]
The specified channel is currently open by another process.
RELATED INFORMATION
Functions: gpib_open(3), gpib_cancel(3)
2/94 - Intergraph Corporation 1
gpibclose(3) CLIX gpibclose(3)
Files: xgpib(7)
2 Intergraph Corporation - 2/94