NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Ails26
Posts: 40
0 Kudos

Change tabs with buttons

Hi Everyone

 

I have 5 tabs:

 

tab1 = user tab (which will contain 4 buttons: button 1, button2, button3, button4)

When button 1 is pressed tab 2 screen is user interface

When button 2 is pressed tab 3 screen is user interface

When button 3 is pressed tab 4 screen is user interface

When button 4 is pressed tab 5 screen is user interface

 

I tried to do this using Boolean buttons so when the button is pressed it will change to the correct page is there a better way to do this?

 

 

Ailish

Knight of NI
Knight of NI
Ben
Posts: 16,091
0 Kudos

Re: Change tabs with buttons

It could work if you code it correctly.

 

For an alternative look for the "Radio buttons" since they already have the multually exclusive behavour built in.

 

And yes the radio buttons can be customized to look differnt if you want.

 

Ben

Ben Rayner
Who is NOT John Galt... yet... just building Rayner's Ridge

Member
zilla
Posts: 121
0 Kudos

Re: Change tabs with buttons

I use this method quite a bit, within a state machine, attached is a basic example..

 

Cheers

Member
Ails26
Posts: 40
0 Kudos

Re: Change tabs with buttons

I have labVIEW version 10 an its not allowing me to view your VI.

 

Ailish

Member
zilla
Posts: 121
0 Kudos

Re: Change tabs with buttons

Here you go....

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page