LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reverse string order

Solved!
Go to solution
untitled.png
0 Kudos
Message 11 of 20
(2,293 Views)
You can convert the hex string to byte array and do the further manipulation.
0 Kudos
Message 12 of 20
(2,292 Views)
Yeah including the space reverses in string. So i had actually accidently suggested the right way in the beginning. LOL!!!
0 Kudos
Message 13 of 20
(2,289 Views)
But nothing from op so far...............
0 Kudos
Message 14 of 20
(2,274 Views)

thank you all

but unfortunately i am still where i was started .. you see i am getting my input from serial port which is 4 byte of data , baudrate 57600 . I am getting the data from serial ..... in the front panel i change the display option to "hexadecimal diplay". but when i give this output to the hexadecimal to number blk it gives me a big fat zero.......

 i also tried the string to byte aray ...but it gives me output as an array of decimal equivalent of each byte saperate ...eg. if the input to it is 0A9E8BAA......it gives me the out as a 1 D array with  values 10,158,139,170 but i need  that thte output shd be the equvilent to 178162602....the decimal equvilent to 0A9E8BAA

 

 

 

 

regards .
Regards
0 Kudos
Message 15 of 20
(2,236 Views)
Solution
Accepted by topic author nolsqn
To get 178162602, all that you have to do is type cast the string to a U32.
Message 16 of 20
(2,231 Views)

nolsqn wrote:

thank you all

but unfortunately i am still where i was started .. you see i am getting my input from serial port which is 4 byte of data , baudrate 57600 . I am getting the data from serial ..... in the front panel i change the display option to "hexadecimal diplay". but when i give this output to the hexadecimal to number blk it gives me a big fat zero.......

 i also tried the string to byte aray ...but it gives me output as an array of decimal equivalent of each byte saperate ...eg. if the input to it is 0A9E8BAA......it gives me the out as a 1 D array with  values 10,158,139,170 but i need  that thte output shd be the equvilent to 178162602....the decimal equvilent to 0A9E8BAA

 

 

 

 

regards .

As dennis as suggested, you need to do some sort of conversion. What you are doing just viewing it as hex. You can also view it as "****" but it is not getting converted. 

0 Kudos
Message 17 of 20
(2,202 Views)
thank you dennis it worked perfectly fine
Regards
0 Kudos
Message 18 of 20
(2,160 Views)

nolsqn wrote:
thank you dennis it worked perfectly fine

 

Have you checked the 11th post? That didn't solved your problem?
0 Kudos
Message 19 of 20
(2,142 Views)
The string reversal is not required. Not sure why the op even asked for that.
Message Edited by Dennis Knutson on 12-30-2009 09:04 AM
Message 20 of 20
(2,139 Views)