09-08-2014 12:15 PM
Hi guys so I have a VI where I have 4 different tabs in a tab control where each one of them is monitoring a different machine's temperature. I would like to know if there is any way to automatically have labview cycle through the tabs at maybe 30 second intervals while the VI is running. I have the temperature monitors hooked up to some boolean indicators to let me know when one machine is too hot or too cold, so it would be nice to be able to have labview automatically switch to that tab when any of the boolean indicators go off as well. I'm very new to labview so maybe this is a very simple fix that I just don't know about. Thanks in advance for any help!
09-08-2014 12:20 PM - edited 09-08-2014 12:21 PM
You can select which tab page is visible the same way you can change the value of a control or indicator. You can use a property node or a local variable.
09-08-2014 12:21 PM
09-08-2014 12:22 PM
Try something like this
Make your Tab Control an Indicator.
09-08-2014 01:40 PM
09-08-2014 04:01 PM
Sorry, not sure why my last post wasn't visible? Thanks for all the suggestions, but I'm not really sure how they could be implemented into my code? Here is my front panel and my block diagram.
09-08-2014 04:43 PM - edited 09-08-2014 04:44 PM
Just put what I or RTSLVU offered somewhere on your Block Diagram (outside of your main loop). It'll cycle the pages (without regard for the changes in the Boolean indicators).
09-08-2014 05:14 PM - edited 09-08-2014 05:28 PM
hmmm...i would not connect any software timing to the wait ms function, that would freeze the FP controls from doing anything. use the elapsed time function to free up your while loop
09-08-2014 05:30 PM
Right. That's what I meant by this:
@jcarmody wrote:
You'll probably want to do something different than the 2000mS wait, but this gives you the idea.
09-08-2014 05:45 PM