I never thought of the tab control as an actual control, but more of a
display device. Anyway, you can make a local variable from the tab and
write a constant to it to switch between tabs.
"Soren Maigaard" wrote in message
news:ap284d$c22$1@news.net.uni-c.dk...
> I have a program with 3 tabs using tab control. The first tab is a login
> screen (because this will be used for remote fron panel use), the next is
a
> configuration tab and the last is the execution.
> The login tab is an event structure waiting for a value changed on the
> "login" bool button.
> The config tab is a while loop that updates different settings which are
> later being read from the execution tab and is also used for running small
> test executions from within the co
nfig tab.
> The execution tab is a while loop that reads settings from the config tab
> controls and actually manipulates I/O ports.
>
> So far so good. Now, when the VI is started, I switch to the login tab and
> disable the others by use of a property node and references. Works well.
> Once the user is logged in, I disable the login tab and enable the others
> and jump to the last tab. Works OK as well.
>
> Problem: If I start the VI when any other tab than the login tab is in
> "focus", that tab will continue running and you can never log in because
the
> login tab will never get "its turn" even though it will actually disable
the
> other tabs and put the login tab in focus. Also, I would like for the tabs
> to stop running when I switch to another tab and continue when I switch
back
> to them, thereby only having one while loop running at a time.
> Right now, if I stop the while loop in one of the tabs the whole program
> stops.
>
> Can anyone help me in the right direction?
>
> TI
A,
>
> - Soren
>
>