10-08-2019 07:36 AM
Hello All,
is it possible to restart VI with a button/value change...?
For example, I want to press button, and my VI should stop and start again immediately...
I tried this way, but I don't know how to start it again...
Can someone advise please...
Best regards.
Milan
10-08-2019 07:40 AM
Not really.
But you can use a State Machine and go back to your first state with a button press very easily.
10-08-2019 07:54 AM
@cbutcher wrote:
Not really.
But you can...
"Could vs Should"
I was given some code developed by others that had a "restart button". That button invoked a ".bat" file that delayed a short time and then invoked the "exe" of the top-level VI. I had to wonder what type of trouble were they having that they decided to implement a restart of the program? I hope I never find out!
Ben
10-08-2019 07:59 AM
@Ben wrote:
@cbutcher wrote:
Not really.
I was given some code developed by others that had a "restart button". That button invoked a ".bat" file that delayed a short time and then invoked the "exe" of the top-level VI.
I knew someone would make me happy I didn't write "no". But let's at least stick with "don't do this!" 🙂
10-08-2019 08:03 AM
OK, I will try with state machine...
I will get back to you..
Thanks