How to Update a Numeric Control Value While Typing or Executing in LabVIEW

Updated Oct 5, 2026

Environment

Software

  • LabVIEW

In LabVIEW, string controls include a native Update Value while Typing option to immediately register keystrokes and fire a Value Change event. However, numeric controls do not feature this built-in option and only commit their value once you press the key, press , or click outside the control.

This article demonstrates a method to achieve update-while-typing behavior for Numeric controls, enabling the value to be processed and updated continuously as the user enters data.

If you need to keep a native Numeric control on the front panel, you can dynamically capture and process values as a user types by configuring an Event Structure to handle the Key Down event for the Numeric control and reading its text content through a Property Node. This approach enables the application to access and process the text being entered before the value is formally committed. Follow the steps below:
  1. Place a Numeric Control on the front panel.

  2. Open the block diagram and place a While Loop.

  3. Inside the While Loop, place an Event Structure.

  4. Right click the Event Structure border and select Add Event Case.

  5. In the Edit Events dialog box:

    1. Under Event Sources, select your Numeric Control.
    2. Under Events, select Key Down under Key section.
    3. Click OK.
  6. Place a Property Node inside the "Numeric": Key Down event case.

  7. Connect the Property Node to the CtlRef on the Event Data Node under "Numeric": Key Down event case. Note that the Property Node will automatically update to DigNum (strict).

  8. On the Property Node, select Numeric Text >> Text property.

  9. Wire the output string from NumText.Text property into a string-to-number conversion function (such as Fract/Exp String To Number or Decimal String To Number) to convert the typed text into a numeric value. 

  10. Wire the converted numeric output to the rest of your application logic.

By reading the NumText.Text property during the Key Down event, you can capture and process numeric input in real time without requiring the user to press Enter, Tab, or move focus away from the control.

Next Steps

Additional Information:

If using a native Numeric control is not a strict requirement, a simpler alternative is to use a String control with the Update Value While Typing option enabled. The String control can update its value and trigger Value Change events on each keystroke. The resulting string can then be passed to a numeric conversion function, such as Decimal String to Number, to obtain a numeric value for further processing.

This approach provides real-time input handling with minimal implementation effort while still allowing the entered text to be used in numeric calculations and application logic.