06-08-2016 02:17 AM
Dear all,
the VI in cRIO has a big while loop, it contains 4 small while loop working parallel. In each small while loop, they have a stacked sequence with many frame.
I want to stop all with only one STOP button from my host Vis. But when I press STOP, I have to wait all the small while loops finished their tasked and finally the big one can stops. Are there any solution to stop all immediately?
Thanks so much
Solved! Go to Solution.
06-08-2016 06:57 AM
@d4nvjpl0ng4n wrote:the VI in cRIO has a big while loop, it contains 4 small while loop working parallel. In each small while loop, they have a stacked sequence with many frame.
I want to stop all with only one STOP button from my host Vis. But when I press STOP, I have to wait all the small while loops finished their tasked and finally the big one can stops. Are there any solution to stop all immediately?
1. You should not have the large While Loop. That is just adding unneccessary complexity.
2. You are hitting the major issue with Stacked Sequence Structures: everything must run through before it is complete. The solution is to use a State Machine.
06-13-2016 10:44 PM
Thanks for your reply, I am trying to work with state machine.