LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Search VI for Representation Type (DBL, SGL, etc.)

Solved!
Go to solution

Is there any easy method of loading a VI and search through all the types to determine what the Representation type is?  I need to convert a ton of VIs from DBL to SGL and would like to be able to know if I've converted them all.  Any ideas?

 

Thanks,

Derek

0 Kudos
Message 1 of 4
(3,390 Views)

Depends on what you mean by "easy". Smiley Wink

 

You would need to use VI Server functions to open a reference to the VI and get the pane's controls, and then for each control you can get the value as a variant and then use the "Get Type of Variant" VI that resides in the vi.lib\Utility\GetType.llb library. For example:

 

Message 2 of 4
(3,371 Views)
There is a second way, as well, but it requires the use of a private property. Private properties are not normally visible, but can be turned on using the added keys that are mentioned in the scripting forum over at the LAVA web site. The private property "Bit Accurate Data Size" will tell you whether it's a DBL or SGL.
Message 3 of 4
(3,368 Views)
Solution
Accepted by topic author Derek Price

Thanks - I'll try this!

Derek

0 Kudos
Message 4 of 4
(3,338 Views)