10-02-2008 05:03 AM
Hi i have a numeric value and i want to change it in a bit vector, so that i can put out some bits or include some bits,
How can i do this?
THX for answer
10-02-2008 05:58 AM - edited 10-02-2008 05:59 AM
assuming your data is represented as an interger...
You can use the logical "And" or the "Or" gates to do a bit-wise and/or with a mask. With the And gate your mask would have the bits set you want pull out.
THe logical bits shift and Split byte/word (found on data manipulation palette) may be handy as well.
I hope that helps,
Ben
10-02-2008 06:12 AM
Same question in german language was discussed here:
http://forums.ni.com/ni/board/message?board.id=170&thread.id=359151
Felix