LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run VI Continuosly

hi all is there a way to run a VI in run continuous mode as soon as I open it? I need it because when I create the exe I only have the run at startup function but as soon as my while loop ends everything stops and I always have to start over instead if I leave run continuosly the program works perfectly I know it's not the best way but I would like to use this way . Can someone help me?

0 Kudos
Message 1 of 7
(806 Views)

Place another while loop around your code and hide the toolbar, etc.

 

Obviously, your code has serious architectural flaws. If you would show us your code, we can give specific advice. Maybe all you need is a simple state machine.

 

"Run continuously" is a debugging tool, not a valid way to run a VI, ever!

 

 

0 Kudos
Message 2 of 7
(788 Views)

Can we know at what condition the while loop is getting stopped.

0 Kudos
Message 3 of 7
(765 Views)

I would gladly send you the code the fact is that it is a driver and has many sub VIs and therefore it is large and I don't know how to send it

0 Kudos
Message 4 of 7
(709 Views)

Hi,

You need to use additional while loop

0 Kudos
Message 5 of 7
(699 Views)

Agree with you comments

0 Kudos
Message 6 of 7
(698 Views)

@a.garciaperez wrote:

I would gladly send you the code the fact is that it is a driver and has many sub VIs and therefore it is large and I don't know how to send it


We are interested in the toplevel architecture (We don't care about drivers), so simply attach the toplevel VI here.

 

I told you in my first answer that a cheap band-aid solution would be just to wrap another while loop around it. It is NOT a recommended solution. All you need is a proper state machine architecture that has an idle state when nothing needs to be done. Pyramids of loops is not the right way!!!

 

Once we see the code, we can give more specific advice.

0 Kudos
Message 7 of 7
(652 Views)