Example Code

Display a Message for a Period of Time Programmatically

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 is an example that shows how to have a message box pop up and exit with out having to press OK.

 

Description

Sometimes when running a VI you might like to see a periodic message pop up to let you know the progress or any other information you need. This activity can become bothersome, especially if you have to press the OK button each time. Here is an example that shows how to have a message box pop up and exit with out having to press OK. It can also be put into a sub VI or even be part of you main VI.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI.
  2. When the window pop up, do nothing and the window will exit after several seconds.

Additional Information or References

VI Snippet

1.png

 

 

 

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

Applications Engineer
National Instruments

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

Comments
Himanshu0128
Member
Member
on

Hi All

Is there any way I can display a text message saying ' Total Time taken = ____' and the numeric value is fetched from the 'Total time box' when the Start/stop button is FALSE.

Spoiler
Time taken.PNG