LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Large case structures output default indicator values

I have the same problem as described in the appnote "Indicator resets to default value when case structure state changes". The only problem with the proposed solution is that I have a case structure with more than a dozen states that controls that many indicators. Therefore, it is highly impractical to place two variables for each indicator in each state. Is there not a more efficient solution for a large case structure?
0 Kudos
Message 1 of 2
(2,565 Views)
When you use "Use Default When Unwired" you cannot change what the default value is. The default value is always 0 for a numeric, false fro a boolean, etc. If in your cases, you only want to update certain values and leave others the way they were, you should have a shift register that is passing a cluster of all values. Inside your case statements, use Bundle by Name to modify just the elements you want and then outside the case statement, use Unbundle by Name wired to individual indicators. Attached is a very simple example.
Message 2 of 2
(2,558 Views)