LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

To make a string control in alphanumeric mode

Hi,
     I'm trying to make a string control for sending commands to an instruments.
     The instruments takes only alphanumeric character, So  i want to create a string
     control which accept alphanumeric(A-Z, a-z, 0-9) values only. How its possible in
     labview, someone please help me.
 
With Regards
LJSmiley Happy
0 Kudos
Message 1 of 5
(2,894 Views)
Register for a 'key down?' event for that string control, and discard it if it is an invalid char:


Be aware, that 'shift' and 'enter' are discarded as well, this can be toggled by the outher case structure.

Ton

Message Edited by TonP on 07-16-2007 07:40 AM

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 5
(2,891 Views)
Instead of the big, complicated inner case structure in TonP's example, simply use the "lexical class" primitive from the comparison palette.
 
For example you could discard everything except lexical class 4 and 5. Adjust as needed.
 
 
Message 3 of 5
(2,880 Views)
You can always trust Altenbach to notice those little used primitives. Smiley Happy

___________________
Try to take over the world!
0 Kudos
Message 4 of 5
(2,864 Views)
Brilliant as usual, Altenbach!  Thank you! Smiley Very Happy

Yi Y.
Applications Engineer
http://www.ni.com/support
0 Kudos
Message 5 of 5
(2,837 Views)