LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How Do I Reset Indicators in User Interface?

I have a VI that has got out of control.  I have created several test sequences that were developed, proven and built into individual VIs.  I created a Main VI and placed (cut and paste) each invidual test VI into a sequencial Frame.  Long story short; The main screen looks good, but the test values and status indicators do not reset everytime the test is initiated (there is no loop).
 
Question- How do I reset each of my indicators on my user interface when the test completes? 
 
 
Thanks in advance,
 
 
Rick Horwitz
0 Kudos
Message 1 of 5
(3,285 Views)

Try the following: Got to "VI properties...execution". Now place a checkmark for "Clear indicators when called". That might be enough. 🙂

(If you are looking for a programmatic solution create an invoke node in the first or last frame as desired, wire it to a reference to the current VI and select method "renintialize all to defaults".)

 

 

0 Kudos
Message 2 of 5
(3,278 Views)
Rick,

An out of control VI with a lengthy sequence structure is a prime candidate for a state machine (see many refernces in examples and this Forum). With a state machine one state can be an initialize state and it can be called whenever required by your system.

Lynn
0 Kudos
Message 3 of 5
(3,269 Views)
I never use sequences any more. Once I learned how to use state machines programming got much easier. I second that advice.
Doug Ferguson
0 Kudos
Message 4 of 5
(3,254 Views)

Yep, that was the bomb.  My application looks and operates almost perfectly!  Thanks for the excellent advice!

 

 

Rick Horwitz

0 Kudos
Message 5 of 5
(3,251 Views)