06-11-2018 11:02 AM
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
Solved! Go to Solution.
06-11-2018 11:19 AM - edited 06-11-2018 11:22 AM
@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.
06-11-2018 11:31 AM
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.
06-12-2018 03:41 AM
Thanks