LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change string positions. (LSB to MSB)

Hi,

I need to reverse the position of an String (where its values will be between 0\ to 999\, max 4 characters), for example :

If I have a string control where I write ( 123\ ) , I want to display (\321).

If I write (12\), I want to display (\21).

If I write ( 1\ ), I want to display (\1).

 

Im trying to use the Rotate String function, but it only rotate like this :

123\ -----> 12\3 

12\ -----> 1\2

1\ ------>\1

(I just wired my control to the Rotate function and wired the output to an Indicator)

How can I apply the reversion correctly ?

 

Kind regards,

0 Kudos
Message 1 of 4
(2,635 Views)

Reverse String…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(2,633 Views)

If only it was in the name of the function .....

 

Smiley Surprised  Smiley Very Happy

Message 3 of 4
(2,616 Views)

@RavensFan wrote:

If only it was in the name of the function .....

 

Smiley Surprised  Smiley Very Happy


and if only it was right next to the function the OP is already using in the palettes...


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 4
(2,612 Views)