
Chapter 5
ibic-Interface Bus Interactive Control Utility
© National Instruments Corp.
5-11
NI-488.2M UM for Windows NT
•
Timeout Setting
•
EOT mode
•
EOS mode
The following example shows
ibdev
opening an available device and assigning it to
access
gpib0
(
board
= 0) with a primary address of 6 (
pad
= 6), a secondary address
of hex 67 (
sad
= 0x67), a timeout of 10 s. (
tmo
=13), the END message enabled
(
eot
=1), and the EOS mode disabled (
eos
= 0).
:ibdev 0 6 0x67 13 1 0
id = 32256
ud0:
If you use
ibdev
without specifying parameters,
ibic
prompts you for the input
parameters as shown in the following example:
:ibdev
enter board index: 0
enter primary address: 6
enter secondary address: 0x67
enter timeout: 13
enter ‘EOI on last byte’ flag: 1
enter end-of-string mode/byte: 0
id = 32256
ud0:
Three distinct errors can occur with the
ibdev
call:
•
EDVR–No device is available, the board index entered refers to a nonexistent board
(that is, not 0, 1, 2, or 3), or the board has no driver installed. The following
example illustrates an EDVR error.
:ibdev 4 6 0x67 7 1 0
id = -1
[8000] (err)
error: EDVR (2)
:
•
ENEB–The board index entered refers to a known board (such as 0), but the driver
cannot find the board. In this case, run
ibconf
to verify that the base address of
the board is set correctly and that the
Use This GPIB Interface
field is set
to
yes
.