Example Code

Push a Number Using the Value (Signalling) Property 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

Description

1. Overview
This examples shows how to use the property Val (Sgnl) [Value (Signaling)] to update a control's vale and generate a value change event.

 

2. Description
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.

 

3. Requirements

  • NI LabVIEW Base Development System 2012 or above.

 

4. Steps to Implement or Execute Code

  1. Download and Run the VI.
  2. Write different numbers in the Number to Push control and click OK as you update them.
  3. Note how the Pulled number event counter keeps track of how many times the Pulled Number indicator is updated.
  4. Click the STOP button to stop the VI.

 

5. Additional Information or References

Using the Value (Signaling) Property Screenshot.PNG

 

 

 

 

**The code for this example has been edited to meet the new Community Example Style Guidelines.**

Regards,


Imtiaz Chowdhury
Project Manager
Green Running / Austin Consultants

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