Choosing your programming methodology, Choosing a method to access the ni-488.2 driver, Windows – National Instruments NI-488.2 User Manual

Page 39: Choosing your programming methodology -2, Choosing a method to access the ni-488.2 driver -2, Windows -2, Linux

Advertising
background image

Chapter 4

Developing Your NI-488.2 Application

NI-488.2 User Manual

4-2

ni.com

Linux

1.

To launch the Interactive Control utility, enter the following command:

<InstallDir>/natinst/ni4882/bin/gpibintctrl

where

<InstallDir>

is the directory where you chose to install the

NI-488.2 software. The default is

/usr/local

.

2.

At the command prompt, type NI-488.2 API calls to communicate
interactively with your instrument. For example, you might use

ibdev

,

ibclr

,

ibwrt

,

ibrd

, and

ibonl

.

Choosing Your Programming Methodology

Based on your development environment, you can select a method for
accessing the driver, and based on your NI-488.2 programming needs,
you can choose how to use the NI-488.2 API.

Choosing a Method to Access the NI-488.2 Driver

Windows

Applications using the older GPIB32 API can access the NI-488.2 dynamic
link library (DLL),

gpib-32.dll

, either by using an NI-488.2 application

interface or by direct access.

Applications using the new NI4882 API can access the NI-488.2 dynamic
link library (DLL),

ni42882.dll

, by using an NI-488.2 application

interface only.

NI-488.2 Application Interfaces

You can use an application interface if your program is written in Microsoft
Visual C/C++ (6.0 or later), Borland C/C++ (5.02 or later), Microsoft
Visual Basic (6.0), or any .NET programming language. Otherwise, you
must access

gpib-32.dll

directly.

For more information about application interfaces, refer to NI-488.2
Application Interface Files
in the NI-488.2 Help.

Direct Entry Access

You can access the DLL directly from any programming environment that
allows you to request addresses of variables and calls that a DLL exports.

gpib-32.dll

exports pointers to each of the global variables and all the

NI-488.2 calls.

Advertising