11-18-2008 03:43 PM
I have two VI's, one top level VI and one sub VI. I have set the top level VI to open the sub-VI when it is called. Now when the Sample button is pressed in the top level, the "period", "count", and "numeric" is suppost to update, so you can see the valves of those two variables on both front panels ("numeric" is not connected to the top level VI). Here is the problem, "period" and "count" are both connected from the sub VI to the top level VI via the show connector thing, and they will not update (the numbers indicates 0). But "numeric" which is the same as "count" would update normally when Sample is pressed when it is NOT connected with the show connector. It stops updating when I connect it to the show connector.
11-18-2008 04:11 PM
Indicators that are used for output terminals will return the default value if they are not in the datapath of the subVI (details).
You need to place the indicator terminals outside the case structure and use a feedback node to retain the value across the "other" case.