From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

stopping programs (multiple loops)

Just saw the code posted earlier. Apologies.

0 Kudos
Message 11 of 13
(787 Views)

Pardon that I am responding to a post that is more than 10 years old. The solution of using 2 (or more for that matter) event structures that react to the same Button is simple and straightforward. What is causing me a rash is:Isn't this one of the absolute no-gos of LabVIEW style guide??

Thanks for your time.

 

0 Kudos
Message 12 of 13
(434 Views)

As long as you follow these guidelines, you should be fine. However, I don't agree with the statement about static events. Sometimes multiple event structures are useful (such as here). Just ensure that each event structure has it's own loop.

 

(One thing you need to be careful when you have multiple event structures. Don't use the same filtering (discard=true) event in more than one event structure. Since whichever structure sees the event first will discard it, so the other one will not see it.)

Message 13 of 13
(425 Views)