LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I automatically go to one tab after an event?

Solved!
Go to solution

Gumby question here...  I am just starting to work with tabs.

 

I have one tab of several that is the "Start Up" tab.  Every time the user clicks the little white "Start Arrow" I want the program to automatically show the "Start Up" tab.  The user then selects various communications ports, etc.  When finished setting things up, the user clicks a "Start Test" button.  At this point, I want to show the "Main Screen" tab instead of the "Start Up" tab.  How do I do this?


See attached vi with dummy tabs that show the buttons I want on the tabs I want.


Thanks!

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 1 of 3
(2,256 Views)
Solution
Accepted by topic author diarmaede

Create a property node for the tab control. Set the property "Value" to the desired tab. After creating the property node create a constant for the value property. This will be an Enum of your tabs.

 

Note: When you add or delete tabs from the control you will need to go through and recreate the constant. It is not updated automatically.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 3
(2,243 Views)

Worked like a charm!  Thanks!

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 3 of 3
(2,235 Views)