National Instruments NI-488.2 User Manual page 39

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

Advertisement

© National Instruments Corporation
GPIB address of your GPIB device, as described in
the GPIB Address of Your Device
Multiple Interfaces or Communicate with Multiple GPIB Devices
in this chapter).
Secondary address for the GPIB instrument (0 if the GPIB instrument
does not use secondary addressing).
Timeout period (typically set to T10s, which is 10 seconds).
End-of-transfer mode (typically set to 1 so that EOI is asserted with the
last byte of writes).
EOS detection mode (typically 0 if the GPIB instrument does not use
EOS characters).
A successful
call returns a device handle,
ibdev
device-level traditional NI-488.2 calls that communicate with the GPIB
instrument.
Step 2. Clear the Device
Use
to clear the device. This resets the device's internal functions to
ibclr
the default state.
Device Communication
Step 3. Communicate with the Device
Communicate with the device by sending it the
reading back the response. Many devices respond to this query by returning
a description of the device. Refer to the documentation that came with your
GPIB device to see specific instructions on the proper way to communicate
with it.
Step 3a.
Use
to send the
ibwrt
Step 3b.
Use
to read the response from the device.
ibrd
Continue communicating with the GPIB device until you are finished.
Cleanup
Step 4. Place the Device Offline before Exiting Your Application
Use
to put the device handle offline before you exit the application.
ibonl
Chapter 3
in the section
query command to the device.
"*IDN?"
3-9
Developing Your NI-488.2 Application
Step 2. Determine
Applications That Use
, that is used for all
ud
query and then
"*IDN?"
NI-488.2 User Manual for Windows
later

Advertisement

Table of Contents
loading

Table of Contents