02-26-2020 02:01 PM
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.
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.
Solved! Go to Solution.
02-26-2020 02:56 PM
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!