Example Code

Filtering accentuated characters in a string control in 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 VI shows how to how to prevent the use of some characters in a string control.


Description
It is based on an event structure. This structure is used to filter several characters written by the user in a string control.

In the example, every accentuated character is blocked, but it can be easily adapted to allow or block other letters.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  • Download the attached VI
  • Run the VI

 

Additional Information or References
Block Diagram

snippet有点问题 所以用了截图.PNG

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

Guillaume H.
National Instruments France

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