LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

numeric convert in bit vector and then put out the first 3 bits

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 

0 Kudos
Message 1 of 3
(2,031 Views)

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

Message Edited by Ben on 10-02-2008 05:59 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 3
(2,024 Views)

Same question in german language was discussed here:

 

http://forums.ni.com/ni/board/message?board.id=170&thread.id=359151

 

Felix

0 Kudos
Message 3 of 3
(2,017 Views)