Stop a Running VI Using the Keyboard

Updated Dec 29, 2017

Reported In

Software

  • LabVIEW Base
  • LabVIEW Full
  • LabVIEW Professional

Issue Details

I have a VI with a loop where I hid the toolbar and I don't want to use a visible control to stop the loop. How can I stop this VI while it is running without having to exit LabVIEW completely?

Solution

You can add a button to stop the loop in the VI, set a key shortcut to toggle it and hide it so it doesn't show up in the Front Panel. Refer to the Related Links for more information about how to achieve this.

Alternatively, you can use the keyboard shortcut <Ctrl + .>  to abort a running VI.  The action is the same as pressing the abort button in the toolbar. Aborting the VI is not recommended because depending on what the code does, it could have undesired effects. For more information, refer to the Related Links.

Additional Information

  • If you use abort the VI instead of reaching its end, be sure to complete all final tasks for the VI first, such as closing files, setting safe values for devices being controlled, and so on.
  • If you modify the VI Properties to hide the Abort button, <Ctrl + .> will not abort the VI.

WAS THIS ARTICLE HELPFUL?

Not Helpful