LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Obtain Properties of Refnum's Referant

Solved!
Go to solution

Using VI scripting, I'm trying to get a list of properties available from any block diagram terminal of type refnum.

 

The refnum terminal may be obtained from any of A, B, and C below.

Capture.PNG

 

Note that if I have a reference to the property node (marked D in illustration), I can easily get a list of properties available, so one approach would be to drop and wire a temporary property node to A, B, or C. However, I have a list of all available properties and their various flags, and I think it will be quicker to parse the array than to generate all the property info I need programatically.

 

I can get the data type of the terminal as a variant, but I can't seem to convert this into the specific data type of the control that the reference refers to.

_____________
Creator of the BundleMagic plugin for LabVIEW!
0 Kudos
Message 1 of 2
(2,169 Views)
Solution
Accepted by topic author littlesphaeroid

Turns out dropping a property node is pretty trivial and gives the list of properties. I've attached a snipppet which should work with any refnum terminal.

 

It should be a straightforward exercise to set one of the output terminals to ClassName to get the Class of the control referred to. However, it seems like there should be a straightforward way to get that class name!

 

Get properties from refnum terminal.png

_____________
Creator of the BundleMagic plugin for LabVIEW!
0 Kudos
Message 2 of 2
(2,142 Views)