LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3 colors (states) for an indicator (LED?)

ok, last one, I promise. 

In otherwords, this reference might become a real mess since I really need "impedance" to be a subvi; as in, in may be used 20 different times in the main VI.  I will actually have to create an individual subVI for each case, and its own corresponding reference?  Basically, the impedance block will actually be driving signals J3-27, J3-15, J3-9, etc.....Thank you

To save you the boredom of the actual VI, here is a SS:

 

0 Kudos
Message 21 of 22
(922 Views)
No, you would not need a separate subVI, you just create a reference for each indicator. So, if you want to update indicator x, you wire the reference of x to the subVI. If you want to update indicator y, you wire the reference of y to the exact same subVI. There's really not much of a difference with either passing a referernce to the subVI or returning a cluster. With passing a refererence, you have the two Boolean inputs and a single reference input to the subVI bu no outputs. If you return a cluster, you have the two Boolean inputs and a cluster output. When you pass a reference, you don't have much clutter on the main VI's diagram. When you return a cluster, you have to have property node on the diagram for each indicator. If you have to do a lot, then passing a reference might actually be cleaner.
Message 22 of 22
(915 Views)