LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to limit the string characters in labview

how to limit the string characters in labview

0 Kudos
Message 1 of 6
(3,021 Views)

There are plenty of exams online that show you how to do this, but here's on I made earlier...

Regards

Andy
_______________________________________

"To 'G' and not to 'C', this is not a question!"
0 Kudos
Message 2 of 6
(3,006 Views)

Could somebody convert this VI down to LV2011 ?

 

Thanks

0 Kudos
Message 3 of 6
(2,923 Views)

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,

Tom L.
0 Kudos
Message 5 of 6
(2,913 Views)

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!

0 Kudos
Message 6 of 6
(2,892 Views)