Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Special Constant Values

NI TestStandô 4.2 Help
May 2009

NI Part Number:

»View NI TestStand Product Info

TestStand declares a number of constant values. Some values, like the keywords True and False, are familiar from other environments. Other values are used less often. The following table lists all known constant definitions and their common uses.

Note  TestStand is not case sensitive for constant names. For example, true is the same as True and TRUE.
Constant Definition Use
1.23e-4 Generic Floating Point A numeric with a range of 1.7e-308 to 1.7e308 with 15 significant digits.
Note  The decimal point character you use in a floating point number is determined by the operating system setting and by the Use Localized Decimal Point option on the Localization tab of the Station Options dialog box.
1234 Generic Integer A numeric with a range of -2147483648 to 2147483647.
0x1234efa9 Generic Hexadecimal Integer A numeric with a range of 0x0 to 0xFFFFFFFF.
0b11011011 Generic Binary Number A numeric with a range of 0b00000000000000000000000000000000 to 0b11111111111111111111111111111111.
True Generic Boolean In C environments, TestStand True values are defined by stdtst.h.
False Generic Boolean In C environments, TestStand False values are defined by stdtst.h.
"1234wxyz" Generic String Refer to Special String Characters for more information.
Nothing Empty ActiveX Reference You can determine whether an object reference refers to an object by comparing the reference to Nothing. You can release the object to which an object reference refers by setting the value of the reference to Nothing in an expression. TestStand handles the garbage collection of references set equal to Nothing when it retrieves all memory that has gone out of scope. This reference is the equivalent of Nothing in Microsoft Visual Basic .NET or NULL in LabWindows/CVI and Microsoft Visual C++.
NAN Not a Number An invalid numeric value. The value is equivalent to a QuietNaN or QNaN in Visual C++.
Note  Indeterminate Number (IND) is a special type of NaN. In comparison operations, IND and NAN are equivalent.
IND Indeterminate Number Equivalent to a Signaling NaN in Visual C++. An infinite number is always equal to an indeterminate number in TestStand.
INF Infinite Number Equivalent to an INF value in Visual C++.
PI PI Constant (3.14159265359) The ratio of the circumference of a circle to its diameter.

See Also



Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit