Virus scan in progress. Please wait to download attachments.
This example allows you to abort any perpetually running VI in LabVIEW.
While it's always advisable to gracefully handle stopping your VIs within the VIs themselves, we've all run into the situation where we've created an infinite loop or some other wiring blunder that has left our VI running perpetually.
While working on a top level application (with the run and abort buttons hidden) I kept running into this problem while hunting down a particularly tricky bug and I found myself in a situation where even the trusty Ctrl+. step wouldn't stop my VI. I wrote this small VI to provide an easy way to abort any running VI through VI server.
This VI is designed as a utility therefore it will run when opened and close when stopped. If you would like to view the source code you will need to press Ctrl+. while it is running to stop it (it filters itself out of the list of 'abortable' VIs).
NEW: I've added another version that will abort all running VIs, even if they are modal. It will run when opened, find all running VIs, abort them, then close itself. Since it doesn't require any front panel interaction, it works for modal windows.
LabVIEW 8.0 or later
Steps to Implement or Execute Code
1. Download and open the Easy VI Aborter example VI
2. Select which VI you would like to abort
3. Click the Abort VI button
4. Click the Exit button when finished
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.