09-19-2016 09:33 PM
Is there any other simpler way to reverse string (without using 'Reverse String' function) using labVIEW besides the one that I tried in this VI attached below?
Thanx.
Solved! Go to Solution.
09-19-2016 09:50 PM
09-19-2016 11:30 PM
Simplified
09-20-2016 12:37 AM
The 2nd method you suggested was exactly like what I tried. I'll try the 1st method. Just a question, how to read the element should be from last to first?
09-20-2016 01:05 AM
Use string subset in a Loop with Length of String subset is 1 and decrement the offset from String Max Length to Zero.
09-20-2016 01:41 PM
@MrsBlackSuit wrote:Is there any other simpler way to reverse string (without using 'Reverse String' function) using labVIEW besides the one that I tried in this VI attached below?
Thanx.
Why would you want to do anything other than the most effecient way, except to learn about something else? (Is this homework, in other words.)
09-20-2016 03:49 PM - edited 09-20-2016 03:50 PM
Once you have a Byte Array, reverse that array and turn it back into a String. Three functions between input and output string -- hard to beat that!
Bob Schor
Oops -- I didn't see that this answer was already given ...
09-20-2016 04:25 PM - edited 09-20-2016 04:31 PM
Here's a "Rube Goldberg" soultion... If that's what you are looking for 😛