Chapter 3 Developing Your NI-488.2 Application
NI-488.2 User Manual for Windows 3-12 www.natinst.com
Step 4a.
Use SendList to send the "*IDN?" query command to multiple GPIB
devices. The address is the list of GPIB devices to be queried. The buffer
that you pass to SendList is the command message to the device.
Step 4b.
Use Receive for each device to read the responses from each device.
Continue communicating with the GPIB devices until you are finished.

Cleanup

Step 5. Place the Interface Offline before Exiting Your Application
Use ibonl to put the interface offline before you exit the application.
Language-Specific Programming Instructions
The following sections describe how to develop, compile, and link your
Win32 NI-488.2 applications using various programming languages.

Microsoft Visual C/C++ (Version 2.0 or Later)

Before you compile your Win32 C application, make sure that the
following lines are included at the beginning of your program:
#include <windows.h>
#include "decl-32.h"
To compile and link a Win32 console application named cprog in a DOS
shell, type the following on the command line:
cl cprog.c gpib-32.obj

Borland C/C++ (Version 4.0 or Later)

Before you compile your Win32 C application, make sure that the
following lines are included at the beginning of your program:
#include <windows.h>
#include "decl-32.h"
To compile and link a Win32 console application named cprog in a DOS
shell, type the following on the command line:
bcc32 -w32 cprog.c borlandc_gpib-32.obj