Primary Types

NI-Motion Functions

Primary Types

The following table shows the primary type names and their ranges:

Type  Description  Range  C/C++  Visual BASIC  Pascal 
u8       8-bit ASCII character   0 to 255 Char Not supported by BASIC. For functions that require character arrays, use string types instead. Byte
i16 16-bit signed integer -32,768 to 32,767 Short Integer (for example, deviceNum%) SmallInt
u16 16-bit unsigned integer 0 to 65,535 Unsigned
short for 32-bit compilers
Not supported by BASIC. For functions that require unsigned integers, use the signed integer type instead. Refer to the i16 description. Word
i32 32-bit signed integer -2,147,483,648 to 2,147,483,647 Long Long (for example, count&) LongInt
u32 32-bit unsigned integer 0 to 4,294,967,295 Unsigned long Not supported by BASIC. For functions that require unsigned long integers, use the signed long integer type instead. Refer to the i32 description. Cardinal (in 32-bit operating systems). Refer to the i32 description.
f32 32-bit single-precision floating point -3.402823 × 1038 to 3.402823 × 1038 Float Single (for example, num!) Single
f64 64-bit double-precision floating point -1.797683134862315 × 1038 to 1.797683134862315 × 1038 Double Double (for example, voltage Number) Double