© National Instruments Corp.
D-1 GPIB-232CT-A for MS-DOS/Windows
Appendix D
DLL Direct Entry NI-488 Functions
and NI-488.2 Routines
This appendix explains and gives examples of how to use the DLL Direct
Entry NI-488 functions and NI-488.2 routines to access the
GPIB.DLL
file. Following the examples are tables that list all NI-488.2 routines and
NI-488 functions, including their calling syntax and ordinal entry values.
The DLL Direct Entry NI-488 functions and NI-488.2 routines can be used
to access the
GPIB.DLL
file from any language or programming
environment that runs under Windows and supports access to standard
Windows DLL functions. As with all functions exported by a DLL, these
functions conform to the PASCAL calling conventions. A few examples of
using these entry points follow. Tables D-1 and D-2 contain a complete list
of all of the entry points.
For specific information on the variables
ibsta
,
iberr
, and
ibcntl
,
refer to Chapter 3, Understanding the NI-488.2 Software, in the NI-488.2
Software Reference Manual for MS-DOS. For specific information on a
routine or function, refer to the NI-488.2 Software Reference Manual for
MS-DOS. For information about accessing dynamic link library DLL
functions from a given language or environment or using ordinal entry
values which some environments do not support, see the documentation
provided with that package.
Example 1, accessing the
GPIB.DLL
file from Turbo Pascal for Windows:
(* First, import the DLL functions you plan to use. *)
function DLLibfind(udname: PChar;
var ibsta: integer;
var iberr: integer;
var ibcntl: longint) : integer; far;
external 'GPIB' index 22;
function DLLibsic(ud: integer;
var: ibsta: integer;
var: iberr: integer;
var: ibcntl: longint) : integer; far;
external 'GPIB' index 42;