LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Exit loop on button state change

Hello I've attached VI that executes states Setup/Measure/Save/Print and Wait if all other states are finished.  How can I implement feature, that if buttons dB/Ohm and IF AUTO/MAN changes their values program execution immediately goes to Setup case.

 

For example: Measure state is exeuted... I press the button dB/Ohm or IF AUTO/MAN ... Measure state is left in the midle of execution and execution goes to Setup state.... after Setup state is finished program execution goes to the the interrupted state e.g Measure state.

 

 

0 Kudos
Message 1 of 2
(2,778 Views)

You will need to use a producer / consumer architecture.

 

Here is something I did (its messy, sorry don't have the time to clean it up) to demonstrate what can be done. This is a good architecture for you to follow as it can address most of UI based applications efficiently.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 2
(2,756 Views)