Visual Basic (Version 4.0 Or Later); Direct Entry With C; Gpib-32.Dll Exports - 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

Visual Basic (Version 4.0 or Later)

Direct Entry with C

© National Instruments Corporation
With Visual Basic, you can access the traditional NI-488.2 calls as
subroutines, using the BASIC keyword
NI-488.2 call name, or you can access them using the
With some of the NI-488.2 calls (for example
length of the string buffer is automatically calculated within the actual
function or subroutine, which eliminates the need to pass in the length as
an extra parameter. For more information about function syntax for Visual
Basic, refer to the NI-488.2 online help. For instructions on accessing the
online help, refer to the
About This
Manual.
Before you run your Visual Basic application, include the
and
files in your application project file.
vbib-32.bas
The following sections describe how to use direct entry with C.

gpib-32.dll Exports

exports pointers to the global variables and all of the
gpib-32.dll
NI-488.2 calls. Pointers to the global variables (
and
) are accessible through these exported variables:
ibcntl
int *user_ibsta;
int *user_iberr;
int *user_ibcnt;
long *user_ibcntl;
Except for the functions
the NI-488.2 call names are exported from
direct entry to access a particular function and to get a pointer to the
exported function, you just need to call
name of the function as a parameter. For more information about the
parameters to use when you invoke the function, refer to the NI-488.2
online help. For instructions on accessing the online help, refer to the
Using the NI-488.2 Documentation
The functions
,
ibbna
argument that is a name.
requires an interface or device name, and
name. Because Windows 2000/NT supports both normal (8-bit) and
Unicode (16-bit) characters,
Unicode versions of these functions. Because Windows 98/95 does not
Chapter 3
CALL
Using the NI-488.2 Documentation
,
,
ibbna
ibfind
ibrdf
gpib-32.dll
GetProcAddress
section in
,
, and
ibfind
ibrdf
requires an interface name,
ibbna
ibrdf
gpib-32.dll
3-13
Developing Your NI-488.2 Application
followed by the traditional
set of functions.
il
and
ibrd
Receive
section in
niglobal.bas
,
,
ibsta
iberr
ibcnt
, and
, all
ibwrtf
. Thus, to use
passing the
About This
Manual.
all require an
ibwrtf
ibfind
and
require a file
ibwrtf
exports both normal and
NI-488.2 User Manual for Windows
), the
,

Advertisement

Table of Contents
loading

Table of Contents