LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Help-byte swap using CVI

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

0 Kudos
Message 1 of 7
(4,532 Views)

Hi Chris,

 

You can use "endianess" functions...(see attached)

 

 

0 Kudos
Message 2 of 7
(4,521 Views)

(so I guess that you will need to use "ToOtherEndian64" function)

0 Kudos
Message 3 of 7
(4,517 Views)

Thanks for the information,  

just to check with you, Do you know CVI is using big or little endian?

0 Kudos
Message 4 of 7
(4,502 Views)

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

0 Kudos
Message 5 of 7
(4,498 Views)

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. 🙂

0 Kudos
Message 6 of 7
(4,484 Views)

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 :

http://forums.ni.com/t5/LabWindows-CVI/Help-Any-one-can-advice-CVI-software-is-using-Big-or-little/t...

 

0 Kudos
Message 7 of 7
(4,482 Views)