LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to get the type of the refnum?

Is it possible to get the type of a refnum from the refnum? Say if I have an array of RefNums, I'd like to go through and initialize them all to a certain value based on type.

Thanks!
-Ken
0 Kudos
Message 1 of 5
(2,803 Views)
Can you give an example?

You don't initialize refnums, as they are references to something. You need to get the reference to that something from LabVIEW.

Initially, the values of all refnums is 0, which means they point to nothing.

___________________
Try to take over the world!
Message 2 of 5
(2,796 Views)
I'd like to get the type of the control that they reference.
0 Kudos
Message 3 of 5
(2,791 Views)
yes, you get it by putting down a property node, wire the control reference and you can get the class ID and/or class name.

Paul
0 Kudos
Message 4 of 5
(2,789 Views)
I don't have a link to the posting, but I recall that someone from NI recommended using the Class ID rather than the Class Name if you are programmatically reading or writing to properties of controls. The reason cited was the higher probability that the Class Names might change from version to version of LabVIEW while the Class IDs were much less likely to change. The Class Names are much more user friendly if you want to look at the properties.

Lynn
Message 5 of 5
(2,783 Views)