LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to split an element into two elements

Solved!
Go to solution

Ah.  Well, if you're only dealing with groups of 8 bits and they're not already strings, masking and shifting as suggested earlier is much, much more efficient.

Alternatively, a slight improvement would use "number to boolean array," divide the resulting array as desired, and then "boolean array to number" to convert each portion of the array back to numbers.

0 Kudos
Message 11 of 12
(427 Views)

I ripped this out of some older code, I used Join Numbers since I wanted to reach across the Byte boundaries, may not be necessary in this use case.

 

ChunkifyBytes.png

 

I always try to work on my gender-neutral writing, 50% of the time I screw it up everytime.  Smiley Happy

0 Kudos
Message 12 of 12
(416 Views)