Overview
This XControl is useful for limiting the number of characters a user can type into a string control. You can download and drop this control into any LabVIEW program.
Description
This XControl uses code written in a two sub-vis to limit the number of characters that can be entered into the control. The number of characters can be changed at run-time through the "String Length" property. This XControl also comes with three other properties: BG Color, Text Color, and Font. Included is an example of how the XControl may be used.
Steps to Implement or Execute Code
To run the example VI:
1. Download the attached zip file, extract files and open "String Limit.lvproj"
2. Open "String Limit Example.vi"
3. Type in the string box; notice the limit is originally set to 10.
4. To reset the string limit, set the value of the control, then click the "Run" button.
5. Click the large "Stop" button; notice the string control maximum length is now set to your value.
To use in your code:
1. Add the XControl to your project
a. In the project, right-click "My Computer"
b. Select "Add -> File"
c. Navigate to where you have saved the XControl and double-click it
2. Drag the XControl from your project explorer onto your front panel
3. You will need to initialize the "String Length" property of the XControl in your code via property node.
4. Enjoy!
Requirements
Software
LabVIEW 2009 or later. LabVIEW 2012 version also included.
Hardware
N/A
If any suggetion / Query Please let me know
Regards
Prabhakant Patil
Please Give me suggestions to improve this control
Good Example.
Just because you are asking the suggestions these can be few improvements