2-8
KPCI-488LPA-900-01 Rev. A / December 2008
Section 2: NI Command Compatible Functions
Model KPCI-488LPA GPIB Controller Interface Card User’s Manual
Data Types
GPIB.BAS
defines some data types. The defined data types are used by the
NI command compatible function library and are suggested for your applications.
shows the
names, ranges, and the corresponding data types in C/C++, Visual Basic and Delphi. These data
types are not defined in either GPIB.BAS or GPIB.PAS (they are just listed for reference).
Table 2-4
Data types
Type
Name
Description
Range
Type
C/C++
(32-bit
compiler)
Visual Basic Byte
U8
8-bit ASCII
character
0 ~ 255
Unsigned
character
Byte
Small
Integer
I16
16-bit signed integer -32768 ~ 32767
Short
Integer
Word
U16
Addr4882_t
16-bit unsigned
integer
0 ~ 65535
Unsigned short
Not
supported.
Placed by I16
Long
Integer
I32 ssize_t 32-bit signed integer -2147483648 ~ 2147483647 Long
Long
Cardinal
U32 size_t
32-bit unsigned
integer
0 ~ 4294967295
Unsigned long
Not
supported.
Placed by I32
Single
F32
32-bit single-
precision floating-
point
-3.402823E38 ~
3.402823E38
Float
Single
Double
F64
64-bit double-
precision floating-
point
-1.797683134862315E308 ~
1.797683134862315E309
Double
Double
Double
SendIFC
Sends
Interface Clear command
to reset GPIB.
SendList
Sends data bytes to multiple GPIB devices.
SendLLO
Sends
Local Lockout (LLO)
message to all devices.
SendSetup
Configures device to receive data.
SetRWLS
Configures device to lockout status of remote control mode.
TestSRQ
Detects current status of the GPIB Service Request (SRQ) line.
TestSys
Causes devices to process self tests. TestSys sends the "TST?"
message to the devices.
Trigger
Sends Group Execute Trigger (GET) GPIB message to a device.
TriggerList
Sends Group Execute Trigger (GET) GPIB message to multiple
devices.
WaitSRQ
Waits until the device controls the GPIB SRQ line.
Table 2-3 (continued)
IEEE 488.2 functions
Function
Description