National Instruments NI-488.2 Time Clock User Manual


 
wibic–Windows Interface Bus Interactive Control Utility Chapter 5
NI-488.2 User Manual for Windows 5-12 © National Instruments Corp.
EARG–One of the last five parameters is an invalid value. The ibdev call returns
with a new prompt and the EARG error (invalid function argument). If the ibdev
call returns with an EARG error, you must identify which parameter is incorrect and
use the appropriate command to correct it. In the following example, pad has an
invalid value. You can correct it with an ibpad call as shown:
:ibdev 0 66 0x67 7 1 0
id = 32256
[8100] (err cmpl)
error: EARG
ud0: ibpad 6
previous value: 16
ibwrt
The ibwrt command sends data from one GPIB device to another. For example, to
send the six character data string F3R5T1 from the computer to a device, you enter the
following string at the prompt as shown in the following example:
ud0: ibwrt "F3R5T1"
[0100] (cmpl)
count: 6
The returned status word contains the cmpl bit, which indicates a successful I/O
completion. The byte count 6 indicates that all six characters were sent from the
computer and received by the device.
ibrd
The ibrd command causes a GPIB device to receive data from another GPIB device.
The following example acquires data from the device and displays it on the screen in hex
format and in its ASCII equivalent, along with the status word and byte count.
ud0: ibrd 20
[2100] (end cmpl)
count: 18
4e 44 43 56 28 30 30 30 N D C V 9 0 0 0
2e 30 30 34 37 45 2b 30 . 0 0 4 7 E + 0
0d 0a . .