LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tabbed windows handling?

Hi folks!
what is the best design forthe GUI handling for tabbed windows? A single while block encompassing all controls in all tabs
or a while for every page? I suppose the latter scheme is the best.
However, it is useless keeping running the while block of an out-of-focus tabbed window. How to disable and re-enable?
 
Using LV 6.1
 
 
 
0 Kudos
Message 1 of 3
(2,746 Views)

I assume you mean tab pages and not tab windows. Tab controls are used to arrange the user interface. This construct should not normally affect the way your code is structured and you should keep only one loop. Consider, what would happen if you wanted to move a control from one page to another? Would you move its code as well?

The best way to handle the UI code is usually with an event structure (which should be available in 6.1) in a single loop. Then, there is no polling, and it doesn't matter how many pages you have.

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).


___________________
Try to take over the world!
Message 2 of 3
(2,724 Views)

Yes, tab pages.

Well, my proposition stems from the fact that every (tab)page of my program has a different aim, typically a run / configuration organization.
You can easily understand that some configuration pages will very rarely be used and would constitute an overhead in average running.

0 Kudos
Message 3 of 3
(2,700 Views)