04-24-2013 02:24 AM
how to limit the string characters in labview
04-24-2013 04:18 AM
There are plenty of exams online that show you how to do this, but here's on I made earlier...
10-10-2013 12:49 PM
Could somebody convert this VI down to LV2011 ?
Thanks
10-10-2013 12:57 PM
There are several options and a few XControl that do this.
http://lavag.org/topic/14588-discuss-x-control-string-limit/
https://decibel.ni.com/content/docs/DOC-16791
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-10-2013 01:06 PM
Hi nxb,
The code provided above is a basic event structure that rejects changes to a string control if a character limit has been reached and the user continues typing.
A very similar but more robust solution that also rejects pasted text is available here:
Example: Limiting the Length of a String Control
http://zone.ni.com/devzone/cda/epd/p/id/4174
That's also saved in 8.0.1, so you should be able to acess it - hope that helps!
Regards,
10-10-2013 03:42 PM
bhairu@gmail.com wrote:
how to limit the string characters in labview
I don't think this question is clear enough to give an answer, because you are not saying what kind of "limits" you have in mind.
Most seem to read it as limiting the string lenght, but you don't mention the word lenght at all. There are many other possible interpretations, e.g. limiting the set of allowed characters (only numbers, only upper-case, Only hexadecimal (0..F), etc.
So, please be more specific so we can give a suitable answer. Thanks!