Example Code

Show Busy Indicator in 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 example demonstrates the 4 basic steps required to use the Show Busy Indicator VI in state machine design.

 

Description

The Show Busy Indicator VI enables you to provide an indication to the user that the system is busy. This functionality is useful if your application performs operations that take more than a few seconds to complete. Run the included example VIs to see how you can implement this functionality in your applications. The Show Busy Indicator VI is a modified version of the TestStand - Show Busy Indicator.vi by National Instruments.

 

Requirements

LabVIEW Full Development System 2012 or compatible

 

Steps to Implement or Execute Code

  1. Run the EXAMPLE 2 - Show Busy Indicator (State Machine) VI
  2. Enter the SHORT milliseconds to wait value, the specified millisecond wait is executed and no busy indicator is displayed.
  3. Enter the LONG milliseconds to wait value, the specified millisecond wait is executed and the busy indicator is displayed.
  4. Move the main VI window and notice that the busy indicator is always displayed in the center of the main VI window.  

Additional Information or References

Note: The busy indicator will not be displayed if the calling VIs front panel is not the frontmost panel when this VI is called.

Example 1 VI Block Diagram

 1041.PNG

 

Example 2 VI Block Diagram

1041.2.PNG

 

 

 

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

 

 


Developed by

 

Mark Ridgley

Mark.Ridgley_LabVIEW.Developer@comcast.net

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

Comments
carlfield
Member
Member
on

good job,thank U very much!

TomOyen
Member
Member
on

Simple and clear, exactly what I was looking for. Excellent code, thanks!

Mark.Ridgley
Member Member
Member
on

Good Morning, Tom

Thanks for the great feedback. I’m glad you like the code and find it useful.

FYI – you may find some of the other code that I’ve contributed to the LabVIEW Community useful as well.

Thanks again and let me know if you have any questions or comments.

Have a great day!

--

Mark Ridgley

Owner, Radius Teknologies, LLC

Certified LabVIEW Developer (CLD)

Certified TestStand Developer (CTD)

Certified Professional Instructor (CPI)

LabVIEW Champion

mark.ridgley@radius-tek.com

www.linkedin.com/in/markridgleylabviewdeveloper<http://www.linkedin.com/in/markridgleylabviewdeveloper>

zmod_cz
Member
Member
on

Hello. Thanks for this code. I am using labview 2016 and when running your example state machine (UI-Example 2)   “long Duration” I notice that clicking “Perform Long Duration Operation” does show the busy indicator correctly. If I then wait till it disappears and repeat the process the busy indicator dialog seems to grow in size each time. Eventually it is large enough to see the “OK” button as well. Any thoughts on this ?