LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Split 10 bit words into two parts

Solved!
Go to solution

Hi all

 

I have 10 bits word and I want to split the word into two parts .The first  part is  bits (0-7) and the second bits(8-10).

Thanks

Sattam

0 Kudos
Message 1 of 4
(2,313 Views)

@Sattam wrote:

 

I have 10 bits word and I want to split the word into two parts .The first  part is  bits (0-7) and the second bits(8-10).

 


No, you have a DBL array , ending up with U16. A simple scaling to the 10bit integer range is all you need before converting to U16. Get rid of your FOR loop completely.

0 Kudos
Message 2 of 4
(2,304 Views)
Solution
Accepted by topic author Sattam

Of course your "bits" need to be arrays, not scalars. Once you make them arrays (right-click...change to array), they can be extracted and displayed as follows.

 

Get10Bits.png

0 Kudos
Message 3 of 4
(2,296 Views)

Thanks

0 Kudos
Message 4 of 4
(2,231 Views)