11-17-2011 09:50 PM - edited 11-17-2011 09:55 PM
I want the code inside one of my tabs to only run when that tab is selected. I'd like to read the value of the tab chosen to compare it to a constant (that tab), and if true, run it. I don't know how to read the value of a tab selector though, I don't understand the structure.
Solved! Go to Solution.
11-17-2011 10:03 PM
You can't have "code inside a tab." A tab control is a front panel item that that allows you to show different groups of other controls that are contained on the tab pages.
The tab control has a terminal on the block diagram. If you want to determine if a certain tab is selected, you just wire that to an equals function. Compare it to a constant. If you right click on the terminal and pick Create Constant, you now have a constant that contains all the pages and you can select the one you want to compare to.
11-17-2011 10:54 PM