Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Handling Notifier Operation Functions in a While Loop

NI LabVIEW 8.6 Help
June 2008

NI Part Number:
371361E-01

»View Product Info

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. This 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.

To correct this problem, wire the error out cluster on the Wait on Notification function to the stop button. In this example, you also must set the force destroy input on the Release Notifier function to TRUE to destroy the notifier once the loop completes execution.

Refer to the General Notifier Example VI in the labview\examples\general\notifier.llb directory for an example of the recommended way to handle a stop condition when using the Notifier Operation functions in a While Loop.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit