08-01-2023 08:52 AM
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?
08-01-2023 09:10 AM - edited 08-01-2023 10:01 AM
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!
08-01-2023 09:44 AM
Can we know at what condition the while loop is getting stopped.
08-02-2023 01:27 AM
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
08-02-2023 02:58 AM
Hi,
You need to use additional while loop
08-02-2023 02:58 AM
Agree with you comments
08-02-2023 08:04 AM
@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.