National Instruments NI-488.2 NI-488.2 User Manual page 63

National instruments network hardware - networking hardware user manual
Hide thumbs Also See for NI-488.2 NI-488.2:
Table of Contents

Advertisement

If you type a command and no parameters, Interactive Control prompts you for the
Note
necessary arguments. If you already know the required arguments, you can type them at
the command prompt, as follows:
:ibdev 0 6 0 13 1 0
ud0:
Note
If you do not know the primary and secondary address of your GPIB instrument, use
Interactive Control to discover it. First, select 488.2 style by entering
represents the board number (0–99) to which you have connected your device. Then use
#
the
FindLstn
enter
help findlstn
© National Instruments Corporation
command to discover the address of your device. For help using
at the command prompt.
2.
After you successfully complete
The new prompt,
can use for further NI-488.2 calls. To clear the device, use
as follows:
ud0: ibclr
[0100] (cmpl)
3.
To write data to the device, use
documentation that came with your GPIB instrument for recognized
command messages.
ud0: ibwrt
enter string: "*IDN?"
[0100] (cmpl)
count: 5
Or, equivalently:
ud0: ibwrt "*IDN?"
[0100] (cmpl)
count: 5
4.
To read data from your device, use
the instrument is displayed. For example, to read 29 bytes, enter the
following:
ud0: ibrd
enter byte count: 29
[0100] (cmpl)
count: 29
46 4C 55 4B 45 2C 20 34
35 2C 20 34 37 39 30 31
37 33 2C 20 31 2E 36 20
44 31 2E 30 0A
Chapter 7
ibdev
, represents a device-level handle that you
ud0
. Make sure that you refer to the
ibwrt
ibrd
FLUKE, 4
5, 47901
73, 1.6
D.10.
7-3
Interactive Control Utility
set 488.2 #
FindLstn
, you have a
prompt.
ud
ibclr
. The data that is read from
NI-488.2 User Manual
where
,
,

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents