01-10-2014 12:33 PM
I have a group of front panel Boolean control I would like to minipulate the visiblity and color(4) in a subvi. I created a cluster of boolean refnum and passed them to the VI. In the VI I created a cluster of CTLRefnum which I used as the input cluster. In the subVI I am able to control the visibility via the visibiliy property node, however the Color(4) property node does not appear as a selection in the subvi. Any ideas on how I could control the colors in a subvi.
Solved! Go to Solution.
01-10-2014 12:54 PM
Hello HEJ@WR,
It sounds like you may have cast your Boolean refnums to more generic Control refnums- as the Color property is specific to Booleans you'll need to ensure that you're maintaining the reference type. Visibility is a more generic property that applies to all types of controls. Refer to this article for more information on casting refnums:
LabVIEW Help: To More Specific Class Function
http://zone.ni.com/reference/en-XX/help/371361H-01/glang/to_more_specific_class/
LabVIEWWiki also has a pretty good discussion of refnum types and class-specific properties here:
LabVIEWWiki: Control References
http://labviewwiki.org/Control_References
Also- if you attach example code demonstrating what you're attempting to do it's much easier for other forum users to assist!
Regards,
01-10-2014 01:15 PM
Adding the "to more specific class function" in the subVI solved the issue.
Thanks,