LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How get Capital Letters of each items of Ring1 and Ring2

Solved!
Go to solution

Hello Guys,
I have two Ring(Ring1 and Ring2).
I want to retrieve the uppercase letters for each of Ring1 and Ring2.
And the rest I know how to do.
How can I do it?
Thanks in advance

0 Kudos
Message 1 of 8
(2,665 Views)

1. Use the Property node and get the strings of the Ring1/Ring2.

2. In the Event Access the NewVal and use this value to get the index of the selected Item.

3.Use String functions to extract indv letters and based on ASCII Value (65-90) find the capital letters

4.Usetypecast to convert Char to ASCII

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
Message 2 of 8
(2,656 Views)

Hi @PalanivelThiruvenkadam,
Thanks for your reply.
I didn't quite understand points 2 and 3.
Can you please show me?
Thanks

0 Kudos
Message 3 of 8
(2,632 Views)
  • Convert string to byte array
  • Autoindex on a FOR loop
  • Use a conditional output tunnel that is true if the byte has lexical class=4
  • Convert byte array to string
  • ...

 

Message 4 of 8
(2,628 Views)
Solution
Accepted by topic author Ngouda

image.png

The Ring Property Node could be for either Ring 1 or Ring 2

Help the Community (and future reviewers) by marking posts as follows:
If it helped - KUDOS
If it answers the issue - SOLUTION
Message 5 of 8
(2,603 Views)

Hi @ @PalanivelThiruvenkadam, @altenbach, @Minions,
Thanks you for your reply.
Thats works now what I want.
Have a good day 🙂

0 Kudos
Message 6 of 8
(2,549 Views)
Solution
Accepted by topic author Ngouda

I still recommend the lexical class solution. Arguably significantly simpler:

 

Here's the code for one Ring. It would be easy to expand to two, of course.

 

altenbach_0-1691593732555.png

 

(concatenate strings turns the array of strings into a single string).

 

Message 7 of 8
(2,527 Views)

Hi @altenbach,
Thank you for your reply.
Yes I agree it's  significantly simpler.
I learn a lot in this forum, you're all great 🙂

0 Kudos
Message 8 of 8
(2,476 Views)