LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to split Numbers (U32 to U8)

Solved!
Go to solution

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

0 Kudos
Message 1 of 5
(8,048 Views)
Solution
Accepted by topic author OnlyOne

You can just use the Type Cast function to convert to an array of U8.

 

Message 2 of 5
(8,042 Views)

Split U32 snippet.png

 

I was kind of surprised that this worked reasonably well.  Just typecasting to an array of U8.

 

 

* dang, I'm too slow. *

Message 3 of 5
(8,040 Views)

Thanks for the help.

Is there also something easy for the other direction?

 

0 Kudos
Message 4 of 5
(8,008 Views)

Ok, forget my last question. This works in the same way with a typecast...

0 Kudos
Message 5 of 5
(8,001 Views)