LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strange Behaviour Due to Show Connector

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.

 

 

 

Download All
0 Kudos
Message 1 of 2
(2,302 Views)

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.

0 Kudos
Message 2 of 2
(2,295 Views)