Example Code

LabVIEW Stop Execution of VI when Minimized

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:
VI Stops when the Front Panel is Minimized.

 

Description:
This code makes usage of several functions present on the User32.dll from Windows. The code passes on the handle of the VI window and when minimized it stops the execution.

 

Requirements:
LabVIEW 2012 (or compatible).
Windows OS.

 

Steps to Implement or Execute Code:
1. Run the VI
2. Minimize the Front Panel.

 

Additional Information or References:

Stop VI When Minimized - LV 2012 NI Verified.png

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

Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support

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