LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tab Control Problem

Ok i have the following problem..when I click the run button everytime in labview i want the login  screen to show before any other tab pages..some times it works but sometimes when i stop the program at 3rd page and click run again..the program starts at 3rd page instead of the login screen..how do i correct this problem?
0 Kudos
Message 1 of 6
(3,040 Views)

Hi KenLabView,

try this to assure the correct flow. see the attached picture. I recommend to use a state architecture.

Mike



Message Edited by MikeS81 on 05-05-2008 01:59 PM
0 Kudos
Message 2 of 6
(3,035 Views)
We ran into this same problem. If you use a property node to change the tab every thing will work like you want it to.
Tim
GHSP
0 Kudos
Message 3 of 6
(3,013 Views)
Yes, but only if it still follows proper dataflow rules, as Mike is saying. You can use a property node and it still wouldn't work properly if it was "free floating" in terms of when it can run.
0 Kudos
Message 4 of 6
(2,985 Views)
One final somewhat esoteric note.  If you have a choice, you should set a front panel value using the following order of precedence for methods
  1. The terminal (see first example above)
  2. A local variable
  3. A property node (see last suggestion above)
The reason for this is that a property node is synchronous while the terminal and local variable are not.  When you set a Value (or Value signalling) property, LabVIEW does bounds checks, any front panel redraws, and sets the control/indicator value before returning.  When setting a terminal or local variable, the new value is posted as a change and occurs on the next UI update (about 30Hz update rate).  This makes the time usage orders of magnitude less for the terminal or local variable vs. the property node.  You do end up using a lot of single-frame sequence structures doing this to get the data flow right.  The efficiency gained is well worth the effort.
0 Kudos
Message 5 of 6
(2,959 Views)
I agree with the order DFGray gave. But as aeastat mentioned we also experienced that tab controls sometimes won't switch when using a local variable. Using a property node helps. Seems like a bug. I didn't check whether it's fixed in 8.5.1.

0 Kudos
Message 6 of 6
(2,945 Views)