From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-12-2018 03:33 PM
Hello.
I am new in the LabView, and I have to do a task. When I will get lowercase it has to be display as a upercase and upercase to lowercase. File of vi - below. Any ideas how to fix it ?
12-12-2018 03:43 PM
Do you need to change all lowercase to uppercase and upper to lower?
AbCd = aBcD
12-12-2018 03:48 PM
I'd brute force it. For all CHARs (get string subset to get each character at a time) then look at it and if it is in range of the upper, return it as lower, and if lower return as upper, if neither just return it, then concatenate, or index and use array to spreadsheet string.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
12-12-2018 04:03 PM
It's a little "Rube Goldberg" but it works...
12-12-2018 04:45 PM
Where can I find this element ?
12-12-2018 04:49 PM - edited 12-12-2018 05:04 PM
@Matix02 wrote:I am new in the LabView, and I have to do a task.
The first change would be to change LabView to LabVIEW. 😄
For the problem at hand, I would keep it simple (assuming all non-alphabetical characters should remain as is):
(It is a little-known fact that many string functions work perfectly on U8 as we can see here. See if you can find the various other primitives :D)
12-12-2018 04:50 PM
I would like to do it, but it easy to have an idea, hard to do (just say). In my .vi, I just wanted to make it, but it's not working.
12-12-2018 04:52 PM
That is in the Array palette and called "Build Array"
Converting the string to a Byte Array allows you to use the For Loop's auto indexing function to index one character at a time for processing.
12-12-2018 04:56 PM - edited 12-12-2018 05:02 PM
12-12-2018 05:10 PM
Gee, I had no idea that the To Upper Case & To Lower Case functions worked on byte arrays.
Note that you can pull some of that stuff out of the loop (might make it faster):