LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

statements

Solved!
Go to solution

how to make labview statments

 

as

 

c = ( 5 << a ) + ( 64 >> b )

 

or


c= ( a & 2 ) << ( b|3 )

 

 

could not find how  to convert and to shift right and lift

0 Kudos
Message 1 of 5
(2,964 Views)
Solution
Accepted by RINO2014

Hi RINO2014,

 

You can use formula node in structures palette to perform these actions using the c code.

 

HTML tutorial  HTML tutorial
162+ CLDs & 10 CLAs Trained
LabVIEW Training resources
0 Kudos
Message 2 of 5
(2,955 Views)

Hello RINO2014,

 

The functions you are looking for are in the Data Manipulation palette, which is part of the Numeric Palette, specifically:

 

LabVIEW Help: Logical Shift

http://zone.ni.com/reference/en-XX/help/371361K-01/glang/logical_shift/

 

The Boolean operators can be found in the Comparison palette.

 

Best Regards,

Tom L.
0 Kudos
Message 3 of 5
(2,954 Views)

thanks so much  really help

0 Kudos
Message 4 of 5
(2,943 Views)

Duplicate thread: http://forums.ni.com/t5/LabVIEW/TANK/m-p/2877560


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 5
(2,903 Views)