LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I lock a tab control untill fuction within tab is complete?

Hi
 
I am a little stumpt.  What I would like to do is to lock a Tab control until the fuction within the tab is complete (and have a dialogue box saying something like "fuction 1 must stop before you can run function 2").
 
I realise some event based programming would have been best but I wonder if there is a quicker fix as the code I produced is quite complex now. 
 
I attach an example (tab control and two case stuctures) to clarify what I need to do.
 
I know there is probably a really simple answer so sorry to be so dim.
 
Many thanks
 
Ash
0 Kudos
Message 1 of 7
(3,308 Views)

Hi Ashley

Just use the "Disabled"-property of the tab control. Set it to either 1 or 2 (disabled or disabled & gray) before your activity starts and set it to 0 (enabled) after the activity finished.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 7
(3,302 Views)

Hi Thomas

Presumably this is done programmatically using the property node. 

However I  can't find the trick to control each tab seperately.

0 Kudos
Message 3 of 7
(3,298 Views)
Hi Ashley,

Take a look at the enclosed example.

The property "Pages" give you an array of refernces to the separate pages of the tab control.

Regards,

andre.buurman@carya

Regards,
André (CLA, CLED)
0 Kudos
Message 4 of 7
(3,294 Views)
Why do you want to disable the tabs separately?
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 5 of 7
(3,287 Views)

Hi again Thomas

I think I probably haven't explained what I am trying to do very well.

Basically the tab control gives access to two separate block diagrams inside a case structure.  I attach an amended example to explain better.

I can see I don't need a disable function as clearly, niether case will run until the other has stopped.  All I need I suppose is a dialogue box pop up saying "case 1 must be stopped before case 2 can be run and vice versa" or for case 2 to be greyed out whilst case 1 is running and vice versa.  I am sure I am making this more difficult than it really is.

I will fix it in the end.

Many thanks

Ash

 

0 Kudos
Message 6 of 7
(3,270 Views)
I'm still of the opinion that you need to disable the tab control. It's quite hard to give advice without knowing the background. Ok, I know what you want to accomplish, but I don't know how it fits in the rest of your app.
 
Ha look at the "wizard" template which could be another solution for you. 
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 7 of 7
(3,265 Views)