Example Code

Detect Value Change of Any Front Panel Control Using 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 the dynamic event registration can be used to detect a value change event for any control on the front panel.

 

Description

This can be used to execute code only when the user modifies values on the front panel.  The example also demonstrates that information about which control is modified can be obtained from the CtlRef event data.

 

Requirements

Software:

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

1. Run VI.
2. Change the values of any front panel objects.

 

Additional Information or Resources

 

2012.png

 

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

 

 

 

Al B.
Staff Software Engineer - TestStand
CTA/CLD

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

Comments
NI-hilator
Member
Member
on

Thanks for the great example!   It appears that it does not catch change events if the control on a tab control.

hlcfreelook
Member
Member
on

Is there any updates? Also searching a way for catch change event of any control inside a tab control.

hlcfreelook
Member
Member
on

Got it. Wire the property node of TabControl-Pages (index it or index with a for loop)-CtlsOnPage to the input of input of Reg Events.