New NI-488M Functions
Appe ndix A
AT-GPIB for SCO UNIX
A-2
© National Instruments Corp.
IBDEV(3)
board only
IBDEV(3)
Purpose
Open and initialize an unused device when the device name is
unknown.
Synopsis
#include <sys/ugpib.h>
ibdev (boardindex, pad, sad, tmo, eot, eos)
int boardindex, pad, sad, tmo, eot, eos;
Description
boardindex
is an index from 0 to [(number of boards) - 1] of
the access board that the device descriptor must be associated with.
The arguments
pad
,
sad
,
tmo
,
eot
, and
eos
dynamically set the
software configuration for the NI -488 I/O functions. These
arguments configure the primary address, secondary address, I/O
timeout, asserting EOI on last byte of data sourced, and the
End-Of-String mode an d byte, respectively. (Refer to IBPAD ,
IBSAD , IBTMO , IBEOT, and IBEOS in the NI-488M Software
Reference Manual for more information on each argument.)
The
ibdev
command selects an unopened device, opens it, and
initializes it. You can use this function in place of
ibfind
.
ibdev
returns a device descriptor of the first unopened
user -configurable device that it finds. For this reason, it is very
important to use
ibdev
only after all of your
ibfind
calls have
been made. This is the only way to ensure that
ibdev
does not
use a device that you plan to use via an
ibfind
call. The
ibdev
function performs the equivalent of the
ibonl
function to open
the device.
Note:
Be sure to return the device descriptor to the pool of
available devices by calling
ibonl
with
v
=0 when you
are finished using the device. If you do not, that device
will not be available for the next
ibdev
call.