Language-Specific Programming Instructions; Microsoft Visual C/C++ (Version 2.0 Or Later); Borland C/C++ (Version 4.0 Or Later) - National Instruments NI-488.2 User Manual

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

Advertisement

Chapter 3
Developing Your NI-488.2 Application

Language-Specific Programming Instructions

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

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

NI-488.2 User Manual for Windows
Step 4a.
Use
to send the
SendList
devices. The address is the list of GPIB devices to be queried. The buffer
that you pass to
SendList
Step 4b.
Use
for each device to read the responses from each device.
Receive
Continue communicating with the GPIB devices until you are finished.
Cleanup
Step 5. Place the Interface Offline before Exiting Your Application
Use
to put the interface offline before you exit the application.
ibonl
The following sections describe how to develop, compile, and link your
Win32 NI-488.2 applications using various programming languages.
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
shell, type the following on the command line:
cl cprog.c gpib-32.obj
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
shell, type the following on the command line:
bcc32 -w32 cprog.c borlandc_gpib-32.obj
query command to multiple GPIB
"*IDN?"
is the command message to the device.
3-12
in a DOS
cprog
in a DOS
cprog
www.natinst.com

Advertisement

Table of Contents
loading

Table of Contents