Representing Pointers in Sequences in 32-bit TestStand and 64-bit TestStand

Use the Object Reference data type to manipulate and store pointers and pointer-sized handles in TestStand sequences regardless of architecture. The Object Reference data type automatically matches the bitness of TestStand. If you use the LabWindows/CVI or C/C++ DLL Adapters, use the appropriate pointer/handle parameter type when you specify a prototype.

Using the Number data type to store pointers as 32-bit integers worked well in previous versions of TestStand because the default representation of the Number data type supports automatic conversion to and from 32-bit integer types. If you use the Number data type to represent a 64-bit pointer, the Number must use a signed or unsigned 64-bit integer representation. Storing 32-bit pointers in 64-bit integers does not work well in TestStand because you cannot automatically convert Numbers with 64-bit integer representations to and from 32-bit integer types. NI does not recommend using a numeric data type for storing pointers.

Use the pointer/handle parameter type and the constant Object Reference Nothing instead of a numeric parameter type and the constant Number 0 to represent NULL pointers.