Example Code

Programmatically Fire the Value Change Event

Code and Documents


This example shows how to use the Value (signaling) property to fire the Value Changed event programmatically. The Value (Signaling) property is introduced in LabVIEW 7.0. In LabVIEW 6.1, events can only be fired by the user changing a control on the front panel.

Firing events programmatically allows you to fire events from anywhere in the VI hierarchy. The Value (Signaling) property updates the value of an object similar to the Value property. However, the Value (Signaling) property also causes LabVIEW to generate an event as if the user had interactively changed the value of the object.

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