Example Code

Abort Execution Button Display Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This VI can prevent users from aborting a VI, using the Abort Execution button, instead of using a stop button

 

Description

There are a few less-known but helpful VI properties. One of which is the ShowAbortButton property. This way you can prevent VI users from aborting a VI instead of using a stop button. Using the TB.ShowAbortButton Property Node, which indicates whether to display the  Abort Execution button on the toolbar, while the VI runs, the VI can prevent users from aborting a VI using the Abort Execution button on the front panel.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

     1. Run the VI

  1. Toggle the Show abort button
  2. See the display of the Abort Execution button on the toolbar ,while the VI runs

 

Additional Information or References

VI Block DiagramAbort Execution Button Display LV2012 NI Verified BD.jpg

**This document has been updated to meet the current required format for the NI Code Exchange. **

Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.