10-02-2013 04:25 AM
hi can anyone help,
i have alot of data (declar:double), how do i bytes-swap all my data using a function on CVI.
Is there any information or example to share?
thanks
chris
10-02-2013 08:50 AM
Hi Chris,
You can use "endianess" functions...(see attached)
10-02-2013 08:53 AM
(so I guess that you will need to use "ToOtherEndian64" function)
10-02-2013 07:36 PM
Thanks for the information,
just to check with you, Do you know CVI is using big or little endian?
10-02-2013 10:17 PM
hehe im blur, why do you said so( ToOtherEndian64)?, meaing base and above requirement i can only use this( ToOtherEndian64) and not ToBigEndian64 ??? can expain reason?
Thanks
10-03-2013 02:40 AM
I think that CVI is using little endian.
For "ToOtherEndian64" function, I was just underlining the fact that "double = 64 bits". But depending on your need, you will maybe have the possibility to use "ToBigEndian64" function. 🙂
10-03-2013 02:43 AM
About CVI endianess, somebody asked the same question and it seems that my answer was not correct (on my computer it is using little endian, that's why I thought it was the same in every system). The good answer is here :