LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview property node used in a subvi

Solved!
Go to solution

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.

0 Kudos
Message 1 of 3
(3,350 Views)
Solution
Accepted by topic author HEJ@WR

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,

Tom L.
0 Kudos
Message 2 of 3
(3,333 Views)

Adding the "to more specific class function" in the subVI solved the issue.

 

Thanks,

0 Kudos
Message 3 of 3
(3,324 Views)