06-28-2011 09:57 AM
Hello,
how can i split a number into its Byte-values (U8)? I found the "Split Number"-thing in labview. Do i have to use this twice for U32? (first U32-> 2x U16 and then U16 -> 2xU8).
Or is there also a faster /more elegant way to do this?
Thanks for help
Solved! Go to Solution.
06-28-2011 10:06 AM - edited 06-28-2011 10:06 AM
You can just use the Type Cast function to convert to an array of U8.
06-28-2011 10:07 AM - edited 06-28-2011 10:08 AM
I was kind of surprised that this worked reasonably well. Just typecasting to an array of U8.
* dang, I'm too slow. *
06-29-2011 02:24 AM
Thanks for the help.
Is there also something easy for the other direction?
06-29-2011 02:42 AM
Ok, forget my last question. This works in the same way with a typecast...