From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(361 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
(350 Views)