LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get type

Hi all !
 
I need some help...
 
My problem is the following: I need to write a function in order to know the type (data representation, e.g: double, I64, I32, boolean....) of all controls/ Indicators present on my Front Panel. I didn't found any function that return me the such an information. After many search i decided to use the property ClassID, from that i deduce the type e.g: If i get a ClassId = 8 , it'as a boolean....
 
I don't think this solution is really clean and i wonder if someone has a better idea ....
 
Thank's in advance.... !
 
 
Message 1 of 3
(5,923 Views)

Hello,

If you're using LabVIEW 7.0 or later, you can wire any control reference into this VI:

vi.lib\Utility\GetType.llb\Get Type of Control.vi

And it will return an enum describing the datatype.  This should suit your purposes.  If you're using an older version of LabVIEW, you may be able to find some other type descriptor parsing VIs out there somewhere, perhaps on these forums somewhere.

Good luck,

-D

Message 2 of 3
(5,907 Views)

Hello Darren !

Thanks a lot for your quick answer, that's exactly what i was looking for ! It works perfectly !

Bye !

0 Kudos
Message 3 of 3
(5,896 Views)