LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Want to launch different Vi by clicking next from one Vi

Solved!
Go to solution
Highlighted

I totally agree with you that every UI design is application-dependant.

 

Yet, the Tab control is NOT a suitable replacement for Multiple UI dialogs. Suppose I dont want the Technician to see the Engg-privileged UI screens such as Create/Edit/Insert/Delete Test Sequencer. In Tab control it would be ugly to hide the tab page names till you verify the login credentials for their correctness. But, if it is a small dialog, the next UI need not have all these unnecessary title visible/invisible code, etc.

 

It ll be easier to track your hierarchy of the operation of your application

 

Tab controls have their fullest advantage when you want/need to do configuration settings for hundreds of channels/devices with some 8-10 parameters each within a single UI & save it to a file at one shot. I have worked on an application wherein the user needs to configure setting for some 240 nodes of energy load centers, each with some 6 parameters with interdependancy of data & enable/disable/visible/invisible.

 

Here, I kept one cluster with 10 nodes per tab page & had 24 such pages for the user to configure. It was child's play to get each of the cluster elements Class ID & determine the settings under seperate case structures within a single loop VI.

 

Later the system was upgraded to 800 nodes. Then, I enlarged the FP almost full-screen & places 40 elements per cluster with 20 tab pages. Everything worked fine. Here I exploited the full usage of the Tab control.

- Partha ( CLD until Oct 2021 🙂 )
Message 11 of 29
(644 Views)
Highlighted

kaush wrote:
@ritesh- How to disable other tabs when i am in first tab. ??

 

See Ritesh, now more UI problems have started for you to sit/guide & solve. Smiley Wink
- Partha ( CLD until Oct 2021 🙂 )
0 Kudos
Message 12 of 29
(642 Views)
Highlighted

Kaush,

 

Look for the Pages property node by placing a generic property node from the Applications pallette & take the array of references to all your tab pages & index the appropriate one by the Ttab control's value & then wire a '2' to that Page's Disabled property.

 

Doing will be easier than explaining without LV.

- Partha ( CLD until Oct 2021 🙂 )
Message 13 of 29
(641 Views)
Highlighted

Kaush,

 

I think you might be knowing how to navigate to the Pages property thro' the VI Server >>VI... way.

 

If not, place a generic property node of the Tab control. Then rt-click >>Pages (I think) will get you in the correct direction. You ll get an array of references to the Pages present in the Tab control. Then you need to use the Index Array primitive & wire the Tab control directly to get the current page under view.

- Partha ( CLD until Oct 2021 🙂 )
Message 14 of 29
(639 Views)
Highlighted

 i would just sugest you to through the link below to find all the answers to ur queries.

 

http://forums.ni.com/ni/board/message?board.id=170&message.id=396470&query.id=281040#M396470

 

 

You dont need to Disable/Enable any page in the Tab Control. You just have to hide the names of the Tabs and paint the Tab Control transparent. Now you just have to guide to different Tabs programatically just like closing a Vi and Running another VI.

 

 

 

Ritesh

Message 15 of 29
(623 Views)
Highlighted
@ parthabe -- Thanks for the help.. But i am not able to do wat u said. I created pages property node for Tab control and i am getting page reference number.. wat next???
0 Kudos
Message 16 of 29
(603 Views)
Highlighted

Kaush,

 

When you create the pages property for a Tab, it ll give you an array of references to all the Pages in the Tab. You need to use an Index Array function & index it with the current value of the Tab. This will give you the rference to the Tab page in view. Now, use this ref with a property node to get its Disabled/Invisible property as per your requirement. Passing a value of '2' will make that Page to be disabled & greyed out.

- Partha ( CLD until Oct 2021 🙂 )
0 Kudos
Message 17 of 29
(598 Views)
Highlighted
Can u send me some example please.. i am trying as u said.. but something is going wrong..
0 Kudos
Message 18 of 29
(593 Views)
Highlighted
Solution
Accepted by topic author kaush
I attached a simple tab navigation example which i used in my projects,i think it will solve all of yyour problems Smiley Wink
Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Message 19 of 29
(592 Views)
Highlighted

Kaush,

 

Sorry. I dont have LV in my PC now. Smiley Sad

- Partha ( CLD until Oct 2021 🙂 )
0 Kudos
Message 20 of 29
(589 Views)