NI Home > Community > NI Discussion Forums

LabVIEW

Showing results for 
Search instead for 
Do you mean 
Reply
Member
sunsaber
Posts: 4
0 Kudos

How to set Tab Control's Tabs to always hide at app startup

How to set Tab Control's Tabs to always hide at app startup ?

 

I want all the tabs to HIDE at the start of the application

using labview 2010 here

Knight of NI
altenbach
Posts: 27,809

Re: How to set Tab Control's Tabs to always hide at app startup

You can write FALSE to the "tabs visible?" property on startup.


LabVIEW Champion . Do more with less code and in less time .

Member
sunsaber
Posts: 4
0 Kudos

Re: How to set Tab Control's Tabs to always hide at app startup

Where do i find the startup property?

Knight of NI
altenbach
Posts: 27,809
0 Kudos

Re: How to set Tab Control's Tabs to always hide at app startup

There is no startup property. I was talking about a property of the tab control. Simply make sure it executes right at the start of the program.


LabVIEW Champion . Do more with less code and in less time .

Member
sunsaber
Posts: 4
0 Kudos

Re: How to set Tab Control's Tabs to always hide at app startup

you mean just leave it anywhere in the block diagram?

i tried that, it just triggers whenever ANY controls (switch, button etc) are clicked

Knight of NI
altenbach
Posts: 27,809
0 Kudos

Re: How to set Tab Control's Tabs to always hide at app startup

 


sunsaber wrote:

you mean just leave it anywhere in the block diagram?

i tried that, it just triggers whenever ANY controls (switch, button etc) are clicked


 

Then show us your code. If you place it outside the main while loop, it will get triggered exactly once per run of the VI. How is your VI organized? Do you use an event structure?

 

Do you possibly use the "continuous run" button? (That mode is only a temporary debugging tool, NOT a valid way to run a regular program!).


LabVIEW Champion . Do more with less code and in less time .

Member
sunsaber
Posts: 4
0 Kudos

Re: How to set Tab Control's Tabs to always hide at app startup

thanks im going to try a while loop

currently i throw everything into an event structure and use Run Continiously

 

and it still runs ONCE even though i use Run Continiously

Knight of NI
altenbach
Posts: 27,809

Re: How to set Tab Control's Tabs to always hide at app startup

 


sunsaber wrote:

currently i throw everything into an event structure and use Run Continiously

 

and it still runs ONCE even though i use Run Continiously


That is expected. "Run continously" basically restarts the VI whenever it completes. If you have an event structure, the VI can only complete if one of the events fires. Thus it will execute once, and then whenever an evet gets triggered.

 


LabVIEW Champion . Do more with less code and in less time .