LabVIEW multiple parallel loops exit at the same time

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.