Example Code

Simple XControl Example - String With a Clear Button

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

Download All

Overview
This example illustrates a very basic string XControl.

 

Description
We use the Value Change event for the String control to modify the XControl Data. We also use the Value Change event for the Clear button to clear the Data and the String Control. Then we use the Data Changed Event to modify the String control.

 

It has a String Control as well as a button to clear the String Control.

 

Requirements
1. LabVIEW Base Development System (or compatible)

 

Steps to Implement or Execute Code
1. Add this control to a VI .
2. Configure the main VI to use the events on the x control.

Additional Information or References
Snippet.png
**This document has been updated to meet the current required format for the NI Code Exchange.**

 

Jared S.
Applications Engineering
National Instruments

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