To stop a parallel loop in LabVIEW
Question: How do I stop two parallel loops in LabVIEW? I use a local variable, but when I stop the program execution, the second time I can't
Run the program. How do I solve this problem?
Answer:
You use a local variable to stop the execution of 2 while loops in parallel to be correct. However, to remember that your local variable is a Boolean entity, you cannot use the Latch mechanical action (latch mechanical action). When the value is changed from True to false and then back to true, the change is not
Often so fast that the loop does not read the value of the change in time. So the mechanical action should be set to switch.
Now when you press the Boolean key to pause the execution, the button is in a false state until you reset it, which causes the program to not run for the second time. So you need to create an attribute node for Bourg that initializes this value before the loop executes. You can
Use a sequence structure to make the initialization precede the execution of the loop.
Please see the flowchart in the attachment, which shows this setting.
2. Stop multiple loops with notifier
LabVIEW multiple parallel loops exit at the same time