Example Code

One/Two Button Dialog including Window Title 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

Demonstrates how the Three Button Dialog.vi can be used to generate a One/Two Button Dialog where you can change the Window title.

 

Description

To achieve a Window Title in the Pop Up Box, a three button dialog has to be used as One Button and Two Button do not have this input. To use this as a One Button dialog but to have the functionality to include a window title a Three Button Dialog is used with the two redundant button inputs left blank.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI
  2. The program will display a One Button Dialog with a customized window title

 

Additional Information or References

Block Diagram of the VI

 

diagram- threebutton.PNG

 

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

Many thanks for using the NI forums and I look forward to your reply.

Kind regards

David

Applications Engineer
National Instruments UK

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

Comments
VDC
Member
Member
on

Simple but Straight forrward. Helped me in saving some time.

Thanks Alot

sebster
Member
Member
on

This also works if you want a two button dialog wih a window title.

Wire strings to two of the inputs, and a blank string to the third.