LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string control input charecter to upcase charecter?

Solved!
Go to solution

Is there any property or method in string control that can modify input character to upcase character?

0 Kudos
Message 1 of 19
(5,330 Views)

Yes, there are functions available in String pallet, function name "To upper case" and "To lower case" user the one you want.

With Regards

Miraz
Kudos is better option to thank somebody on this forum
------------------------------------------------------------------------------
0 Kudos
Message 2 of 19
(5,313 Views)

reading between the lines on your post (because there's not enough information to say for sure), it looks like you want to have a string control on your front panel and if a user types a lower case character you'd replace it real-time with the uppercase equivalent?   Is it good enough to convert to uppercase after they hit enter or move to a different control? 

 

If it needs to be done as soon as the key is pressed, have a look at the attached.  One easy-to-overlook thing is "update value while typing" setting (right click on front panel string control).

0 Kudos
Message 3 of 19
(5,299 Views)

sorry for redundant post

0 Kudos
Message 4 of 19
(5,298 Views)

Hi,

I try your VI. but it seems the character unable to upper and display at real time. So maybe you should update your VI so that the control can display upper case once I type a character.

0 Kudos
Message 5 of 19
(5,271 Views)
Solution
Accepted by song403

Try attached VI.

 

Edit: Make sure update while typing property is selected.

With Regards

Miraz
Kudos is better option to thank somebody on this forum
------------------------------------------------------------------------------
0 Kudos
Message 6 of 19
(5,265 Views)

@Miraz_Automation wrote:

Try attached VI.

 

Edit: Make sure update while typing property is selected.


Why do you have a timeout and the stop button by itself?  Why not simply have an event for the stop button, also?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 7 of 19
(5,248 Views)

Hi Billko,

 

Idea was to show the uppercase conversion. rest is just quickly made code not at all ideal.

 

thanks for pointing out, point noted.

With Regards

Miraz
Kudos is better option to thank somebody on this forum
------------------------------------------------------------------------------
0 Kudos
Message 8 of 19
(5,236 Views)

My version from post 3 works for me and I can't see a weakness that would cause it to not work for the OP.   Anybody?

0 Kudos
Message 9 of 19
(5,225 Views)

It's very tricky.

I have to put a wait before the string in the event case, even to 2ms(1ms is not enough).

Moreover, I have to add the key repeat event case for the string so that the string can be immediately displayed.

It seemed that the KEY DOWN event is faster than VALUE CHANGE so that key down event is triggered but value change yet.

Message 10 of 19
(5,207 Views)