ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tab control

Hello,
I am using a tab control in a data acquisition VI to display three different data sets on the front panel, depending on what the user wants to see. On the block diagram, I have the subVIs to collect each data set located in the approprate "case" of the tab control, along with the relevant indicators. I assume that the indicators for the non-selected tab cases are not updated until the case is selected, but will the data still be collected for the unselected cases? In other words I would like to always be collecting data from each data set (to write to an output file) but only want to display the data from the selected case. Thanks.
 
0 Kudos
Message 1 of 4
(2,940 Views)

You don't need to do any "cases" on the block diagram for the tab state. Just use it as a purely cosmetic feature and do all the various code parts (data collection, etc.) in parallel. The data acquisition will not happen if it is inside a case that is not currently active.

Think of a tab control just as an easy way to display only a subselection of FP objects at any given time. The code does not need to know what the operator is currently looking at unless it is required for the code logic

I am sure that LabVIEW is smart enough not to constantly update hidden controls. Do you have performance issues?

0 Kudos
Message 2 of 4
(2,933 Views)
Thanks altenbach,
No, I do not have any performance issues. I guess I just misunderstood the function of the tab control.
0 Kudos
Message 3 of 4
(2,926 Views)
Some things are often just fine "no strings attached". 😄
0 Kudos
Message 4 of 4
(2,911 Views)