Get Variable Data Type in Resultlist When Calling In LabVIEW From TestStand

Updated Sep 28, 2023

Environment

Software

  • TestStand
  • LabVIEW Beta

Imagine you already called the value of the ResultList variable from TestStand in LabVIEW successfully. Now you want to call the data type of the variables in LabVIEW. This article shows how to use invoke node and property node in the LabVIEW and call the data type. The expected outcome, for example, TestStand will return value <Integer> when called ResultList[5].Numeric in LabVIEW.
 
1.png
 
 
 

STEPS
  1. Value Type property can be used to determine data types such as Boolean, string, numeric, etc.
    • 3.jpg
  2. Numeric format can be used to determine numeric data types such as real, integer, hexadecimal, etc.
    • 4.jpg
  3. Use the GetPropertyObject method and Type property to access Value Type and Numeric Format properties
    • 5.JPG
 
 

RESULT

The ValueType will return <PropValType_[Data Type]>, for example: PropValType_Number.
The NumericFormat will return <%[syntax]>, for example:  %g for Real number.
 

EXAMPLE
  1. Boolean Data will show as PropValType_Boolean as DataType.
    • 6.JPG
    • 7.JPG
  2. Integer will show as %i as Numeric Format.
    • 8.JPG
    • 9.JPG