The following steps show you how to use the device-level traditional NI-488.2 calls in your application.
First use ibdev to open a device handle. The ibdev function requires the following parameters:
A successful ibdev call returns a device handle that is used for all device-level traditional NI-488.2 calls that communicate with the GPIB instrument.
Use ibclr to clear the device. This resets the device's internal functions to the default state.
Communicate with the device by sending it a "*IDN?" query and then reading back the response. Many devices respond to this query by returning a description of the device. You must refer to the documentation that came with your GPIB device to see specific instructions on the proper way to communicate with it.
Use ibwrt to send the "*IDN?" query command to the device.
Use ibrd to read the response from the device.
Continue communicating with the GPIB device until you are finished.
Use ibonl to put the device handle offline before you exit the application.