04-02-2007 08:01 PM
04-02-2007 08:50 PM - edited 04-02-2007 08:50 PM
Check out
Programming / String / Additional String Functions. There is a VI called reverse string. Its icon looks like ab --> ba
Message Edited by Ravens Fan on 04-02-2007 09:50 PM
04-03-2007 10:30 AM
04-03-2007 10:36 AM - edited 04-03-2007 10:36 AM
1 are your bytes in a byte array? if so you could reverse 1d array
2 you could also look at the data manipulation pallet under the numeric pallet and try the swap bytes or swap words
3 if you are building an array of strings or numbers you can prepend or append values to the array depending on how you wire the build array
4 you could use queue's and use the enqueue element at opposite end then when you dequeue it will be reversed
5 also in the data manipulation pallet you can use the split and join numbers to manipulate bytes but you may need to use the shifting or rotating vi's when joining them back together
Message Edited by James R on 04-03-2007 10:40 AM
04-03-2007 10:41 AM
2 you could also look at the data manipulation pallet under the numeric pallet and try the swap bytes or swap words
04-03-2007 12:43 PM - edited 04-03-2007 12:43 PM
Message Edited by Ravens Fan on 04-03-2007 01:44 PM
04-03-2007 02:29 PM
Thanks Ravens Fan. This is exactly what I need.
dphan128
01-06-2015 11:01 AM
Will this work for bytes endian conversion?
I am trying to reverse a string of bytes generated in C# and transmitted over UDP to labview myRIO. Doesn't seem to work in my case.
01-06-2015 11:07 AM
Maybe, maybe not. It depends on what you are trying to send, how long it is, what the datatype is supposed to be.
I suggest starting a new message thread. Attach some examples as to what the data looks like, and what it should be converted to.
Look on the Numeric >> Data Manipulation palette for some functions that help with endianism.
01-06-2015 11:20 AM
@Lexilighty wrote:
...and transmitted over UDP to labview myRIO.
That sounds like a place to use the Unflatten From String to get the data in the format you need. There is an input for Endianness.