Example: Handling Notifier Operation Functions in While Loops

LabVIEW 2018 Help


Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

The following example shows a common mistake when using the Notifier Operation functions and a stop Boolean control in a While Loop.

When the value of the stop Boolean control in the second loop changes to TRUE, the VI does not always stop, and the user must click the Abort Execution button to stop the VI completely. The reason is because the loop does not finish executing until each function in the loop completes its last execution, and the Wait on Notification function in the second loop is not connected to a stop condition.

Complete the following steps to correct this problem.

  1. Wire the error out cluster on the Wait on Notification function to the stop button.
  2. Set the force destroy? input on the Release Notifier function to TRUE to destroy the notifier once the loop completes execution.

WAS THIS ARTICLE HELPFUL?

Not Helpful