From: JB on
A few minutes to make an example and I must note that others have already posted a lot of answers and comments. You are really too fast !
From: Norbert B on
Here the reworked example as vi, maybe someone could use it...... Norbert


Masking Bits.vi:
http://forums.ni.com/attachments/ni/170/321303/1/Masking Bits.vi
From: altenbach on
In general, I would really recommend to stick with a solution that does not use any thick green wires (Dave's solution above is better! :)). Bit manipulations should be done with blue wires. Going the detour via boolean arrays is easily an order of magnitude slower and requires an order of magnitude more memory.
<a href="http://zone.ni.com/devzone/cda/tut/p/id/5307" target="_blank"></a>&nbsp;
For some illustrations, have a look at the results of the old bit twiddling challenge: <a href="http://zone.ni.com/devzone/cda/tut/p/id/5307" target="_blank">http://zone.ni.com/devzone/cda/tut/p/id/5307</a> Message Edited by altenbach on 05-06-2008 07:08 AM