LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Query for Tab Control

Hey everyone,
I am working on an application which need a Tab Control in it. I have 2 Tabs in that control. One is Engineering mode and other is Application mode. Only when certain condition's are met in Engireeing mode then only user can change to other mode by pressing the tab's .....
 
I hope you got wht I want. for any further clarification please let me know
 
thanks
--
Regards,
Sarang Dhananjay Jaiswal
Satyam Development Center, Banglore, INDIA
0 Kudos
Message 1 of 8
(3,183 Views)
Sarang,

I think you want to disable the Tab control until certain conditions are met. I just did this for my current project. Here is a test VI that I put together to find out how it could work.

Lynn
Message 2 of 8
(3,172 Views)

Nice post Lynn!

You taght me something with the array to cluster >>> Unbundle by name construct.

It looks like this got introduced in LV 7.0 and I nver noticed it. It figures that I am still learning about LV 7.0 and LV 8.0 is announced.

 

Thank Lynn.

 

Ben

Message Edited by Ben on 10-01-2005 11:02 AM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 8
(3,160 Views)

Hey thanks for the wonderful suggestion.I used it in my program as its working fine now. I have few more quiries about Tab Control.

I have 3 Tabs (Tab_A, Tab_B, Tab_C) in Tab control. Each Tab contains one While loop. Now if i run my program and click on the Tab_B then the controls in Tab_B is not active because the program is still in Tab_A's while loop.

What I  want is as soon as the user clicks on the Tab_B or Tab_C the current while loop (in this case Tab_A's while loop) should stop.

I hope you got what exactly I want. Please let me know if you need more clarifications.....

Thank You.

--
Regards,
Sarang Dhananjay Jaiswal
Satyam Development Center, Banglore, INDIA
0 Kudos
Message 4 of 8
(3,103 Views)
Hello Sarang,

just check the tab control in your while loops and connect this with your normal stop condition with an OR or AND operation.
Example: in whileloop "A" you should have a statement like this: IF (tab<>"A" OR stop_condition) THEN stop_whileloop

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 8
(3,099 Views)

hey GredW,

 I am not able to figure out what you explained ..... it would be nice if you could explain me with some example vi....

Thank You.

--
Regards,
Sarang Dhananjay Jaiswal
Satyam Development Center, Banglore, INDIA
0 Kudos
Message 6 of 8
(3,083 Views)
Hello Sarang,

maybe a picture says more than words 🙂

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 8
(3,073 Views)
You should consider the fact that you don't "need" a seperate loop for each page (unless your logic calls for it). If possible, you should handle all the user interface elements in a single loop - when the users can't see page A, they can't use the controls in it either.

___________________
Try to take over the world!
Message 8 of 8
(3,055 Views)