Example Code

Programmatically Changing the Colour of an OK Button according to an Input 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 shows how to programmatically change the colour of the OK button dependant upon which input signal is received

 

Description

This example shows how to programmatically change the colour of the OK button dependant upon which input signal is receieved. For example, is a value change at Input 1 is received the OK button will blink RED, when there is a value change at input 2, the OK button will blink GREEN and so on.

 

Requirements

LabVIEW Base Development System 2012 or compatible

 

Steps to Implement or Execute Code:

  1. Run the VI
  2. Change the Numeric inputs value to blink the OK button depending on color definition in each case

 

Additional Information or References

VI Block Diagram

9933.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.