To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The purpose of the code is to demonstrate Filter Events using a stop button that triggers an event in LabVIEW.
Description
When you run the application it is waiting for the stop button to trigger an event. When the stop button is clicked before the Stop Button Notify event case runs the Filter case will run. In the Filter event case, it asks the user if they really want to stop the program. If the user selects No the event structure will ignore the Stop Button Notifier event and exit the event structure to wait for another event or complete other tasks outside the event structure in the while loop. However, if the user does select to stop the program from the dialog it will run the Stop Button Notifier Event and stop the program. Therefore the Notify Event Case will never run without first running the Filter Event if one exists. For more information, refer to Notify and Filter Events.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Description-Separate-2Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.