gpib-32.dll Exports

NI-488.2

gpib-32.dll Exports

gpib-32.dll exports pointers to the global variables and all of the NI-488.2 calls. Pointers to the global variables (ibsta, iberr, ibcnt, and ibcntl) are accessible through these exported variables:

int *user_ibsta;
int *user_iberr;
int *user_ibcnt;
long *user_ibcntl;

Except for the calls ibfind, ibrdf, and ibwrtf, all the NI-488.2 call names are exported from gpib-32.dll. Thus, to use direct entry to access a particular function and to get a pointer to the exported function, you need to call GetProcAddress passing the name of the function as a parameter. For more information about the parameters that you use when you invoke the function, refer to the help for that function, which you can access through the Index of this help file.

The calls ibfind, ibrdf, and ibwrtf all require an argument that is a name. ibfind requires a board or device name, and ibrdf and ibwrtf take a file name. Because Windows supports both normal (8-bit) characters, and Unicode (16-bit) wide characters, gpib-32.dll exports two versions of each of these functions. An "ASCII" version is for 8-bit characters (ibfindA, ibrdA, ibwrtA) and a "wide" version for 16-bit characters (ibfindW, ibrdW, ibwrtW).

In addition to pointers to the status variables and a handle to the loaded gpib-32.dll, you must define the direct entry prototypes for the calls you use in your application. To see the prototypes for each function exported by gpib-32.dll, refer to the help for that function, which you can access through the Index of this help file. The direct entry sample programs illustrate how to use direct entry to access gpib-32.dll. For more information about direct entry, refer to the help that is built into your development environment.