Intrinsic C Data Types
- Updated2023-02-21
- 2 minute(s) read
Intrinsic C Data Types
The intrinsic C data types that LabWindows/CVI defines are as follows:
int
long
short
char
long long
unsigned int
unsigned long
unsigned short
unsigned char
unsigned long long
int []
long []
short []
char []
long long []
unsigned int []
unsigned long []
unsigned short []
unsigned char []
unsigned long long[]
double
float
double []
float []
char *
char *[]
void *
When you create a control to represent an array of data, make the data type an intrinsic C data type that ends with the square brackets, []. Do not select a data type that ends with an asterisk (*). The brackets tell LabWindows/CVI that the control represents an array of data, not a pointer. LabWindows/CVI can then perform the appropriate variable declaration and run-time checking when the user operates the function panel.
When you define a function panel control with an intrinsic C data type, variables the user declares in the control through the Declare Variable command appear with that data type in the dialog box. You must define the parameter with the same data type when you prototype the function in the instrument driver include file.
Note If you use the long long, long long [], unsigned long long, or unsigned long long [] data types, you must set the FP File Format option to CVI 8.5 and later. |