LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using TABS

Friends
I'm developing a program in LabView using tabs. However, when I run the program, if I switch to the next tab, the functions in that tab do not work. How do I make the program run straight even when changing tabs? As it is now, I need to stop what was done in tab 1 and when I go to tab 2, I need to run it again and so on. How can I make the program run completely in all tabs without having to stop the previous tab and run the new tab? Thanks!

0 Kudos
Message 1 of 6
(500 Views)

My guess is that you are reading the tab at the beginning of your application and never again after that.  Can you share your code so we know what you are dealing with?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 6
(496 Views)

A Tab Control is just a container for controls and indicators.  It can't do what you are describing unless you have programmed that behavior specifically.  We will need to see your code to help.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 3 of 6
(480 Views)

Tabs basically are a way to organize controls and indicators. Switching tabs will not change your application behavior unless you add logic to be aware of the Active tab.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 4 of 6
(418 Views)

@MarceloPinto71 wrote:

I'm developing a program in LabView using tabs. However, when I run the program, if I switch to the next tab, the functions in that tab do not work. How do I make the program run straight even when changing tabs? As it is now, I need to stop what was done in tab 1 and when I go to tab 2, I need to run it again and so on. How can I make the program run completely in all tabs without having to stop the previous tab and run the new tab? Thanks!


You have not provided any information on your code architecture and already got some wild guesses what could be wrong with your code. Of course there are millions of other possibilities.

 

Most often the terminal of the tab control should not connected to anything. Program your code as if all controls are just scattered on the front panel. Typically you should not micromanage the code by e.g. connecting the tab terminal to a case structure or similar.

 

As a first step attach your VI. Make sure all controls contain typical default values and explain how you operate it. If your LabVIEW is recent, do a "save for previous" (2020 or below) before attaching.

0 Kudos
Message 5 of 6
(380 Views)

Thanks to all for your help! I managed to solve it using a state machine.
Thankful to all of you, friends!

0 Kudos
Message 6 of 6
(344 Views)