LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Feedback from the Tab Control

I have 3 tabs, and each one runs a sequence, in a case associated with the tab control. When I start my program, the sequence found in the active tab (case) runs. I have put 3 Stop buttons (one per tab) to stop each of cases (actually to stop a loop there). After stopping a sequence on a tab, I can press on another tab and change this way the running sequence.
Now, I'd like to stop any running sequence in a tab's case by just pressing on another tab and this way starting the sequence associated with that tab. This would eliminate the Stop buttons. But how to do it, because just the selection of another tab with the operating tool neither triggers an event nor launches the case associated with that tab?
I use LabView 6.1 under Win2K. TIA.

0 Kudos
Message 1 of 3
(2,566 Views)
In each of the loops that you monitor the stop buttons, inspect the local value of the tab control and compare it for changed value or the value of your specific case. In either case the logic is the same as your stop button. While( !StopButton AND !TabChanged)
Stu
Stu
0 Kudos
Message 2 of 3
(2,566 Views)
Thanks a lot. It worked.
Victor
0 Kudos
Message 3 of 3
(2,566 Views)