LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to switch between tabs in a tab container programatically?

I'm displaying plots from a number of instruments, and would like to use the tab container to maximize my screen real estate.  Since this system is a display for my users I'd like to switch between tabs on a schedule to allow the users to see all the instrument outputs over the course of a minute.
0 Kudos
Message 1 of 5
(3,205 Views)
Right-click on the tab and select "Create->Local Variable". Then, on the block diagram right-click on the local variable and select "Create->Constant". The tab is just an enum, so you select which tab you want displayed by selecting the proper enumeration. The same thing can be done with the "Value" property node (right-click on the tab and select "Create->Property->Value". The latter gives you error I/O so you can control when it actually gets set.
0 Kudos
Message 2 of 5
(3,196 Views)

The tab is shown is the value property of the tab this is an enum so the index of the page is name of the tab.  It is best to make this a typdef so if you change the tabs you only have to updat the new tab names/order in one place.

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 3 of 5
(3,196 Views)
Change the tab control to an indicator and write directly to its terminal. No locals or property nodes required. Paul's suggestion of typedef is also good.

Lynn
0 Kudos
Message 4 of 5
(3,190 Views)
Thanks for all the help, I've got it now.
0 Kudos
Message 5 of 5
(3,174 Views)