LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read multiple holding registers and convert to 32 bir float

Solved!
Go to solution

I appriciate your patience altenbach.

your solution works perfekt, thank you for the help

0 Kudos
Message 11 of 12
(125 Views)

@PalanivelThiruvenkadam wrote:
How to handle if there is a byte order change involved?

Flatter/unflatten has a byte order input. You can also swap bytes or swap words, depending on what yo want.

 

In your case, you are reversing the two elements of the U16 array, possibly meaning that the two bytes of each U16 are actually in big endian but in the wrong array order. We need to know more details before we can give advice. Are you absolutely sure your explicit code gives the correct result?

 

If reversing each two-elements U16 array gives the correct answer, this would be equivalent. No loop needed.

 

You are changing the word order, NOT the byte order!

 

altenbach_0-1680707806130.png

 

 

Same result:

 

altenbach_1-1680708163736.png

 

Message 12 of 12
(120 Views)