LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tab control with events

I've done some searching to find a solution to my issue, but haven't found anything.

I'm using Tab Control. After some intialization a while loop is entered. Within the while loop is a case structure with the tab control enum wired to the selector terminal.

Here's the problem (I think). Each case (tab) has an event handler in it. The event handler serves a boolean.

When the VI is run and I change tabs, the application locks up. Highlighting execution doesn't help much.

When the VI is run and tabs are NOT changed, the exit button works as expected.

I think I'm missing a basic rule when using events and the tab control.

Your help will be appreciated.

todd
0 Kudos
Message 1 of 2
(2,279 Views)
The on-line help has a subject called "Caveats and Recommendations when Using Events in LabVIEW". In there, it recomends not placing more than one event structures in a single loop. All of your event structures are active and must handle an event for the loop to reiterate. Placing all events in a single event structure should fix the problem.
Message 2 of 2
(2,269 Views)