Determine Data Type of Data Stored in Variant

Updated Nov 30, 2023

Reported In

Software

  • LabVIEW

Issue Details

How to determine the data type of the data stored in a variant programmatically?

Solution

Get Type Information.vi can be utilized to retrieve the data type information of the data stored in a variant. It is located at:
  • LabVIEW 32-bit: C:\Program Files (x86)\National Instruments\LabVIEW version\vi.lib\Utility\Data Type
  • LabVIEW 64-bit: C:\Program Files\National Instruments\LabVIEW version\vi.lib\Utility\Data Type