LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Variant to data type conversion

Solved!
Go to solution

Hi All,

 

I am using VI Scripting in LabVIEW 2010. I am in need of finding out the datatype of the wire connected to a terminal. Wire terminal reference gives a property called "Datatype". I believed this will help me out. But this is a variant and how do i actually convert it to data to find out the datatype. I do specifically want to make use of cluster datatype. How to find out whether the wire is of cluster type?

 

Thanks for any help.

0 Kudos
Message 1 of 2
(3,163 Views)
Solution
Accepted by topic author madhu27

You want to use the "GetTypeInfo.vi" VI in "LabVIEW 20xx\vi.lib\Utility\VariantDataType\" folder for this!

 

I would recommend installing this VI Package, as it adds these functions to the palettes:

https://decibel.ni.com/content/groups/hidden-gems-in-vilib

 

Here's how it looks:

gettypeinfo.PNG

Craig H. | CLA CTA CLED | Applications Engineer | NI Employee 2012-2023
Message 2 of 2
(3,138 Views)