ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Logical AND, Logical Shift

hello,

can someone explain this?

 

 

 

 

 

probe.jpg

 

scan0001.jpg


 

 

 


0 Kudos
Message 1 of 4
(3,473 Views)

Hi W3SK,

it's because you use "logical shift" and not "rotate".

 

Mike

Message 2 of 4
(3,466 Views)

Read the context help for the Logical Shift function.

 

"y can be any numeric representation. If y is greater than 0, the function shifts x left y bits (from least significant to most significant bit) and inserts zeros in the low-order bits. If y is less than 0, the function shifts x right y bits in the positive direction (from most significant to least significant bit) and inserts zeros in the high-order bits."

 

Put in -4 to rotate 4 bits to the right.

Message 3 of 4
(3,462 Views)

thanks, Mike Smiley Wink

0 Kudos
Message 4 of 4
(3,454 Views)