LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

C++ to LabView

Solved!
Go to solution

 

What is the equivalent VI of the next C++ code?

 

ret = ret << 8;

 

Thank you guys

0 Kudos
Message 1 of 13
(4,041 Views)
Look at the logical shift function in the Numeric / Data Manipulation Pallette.
0 Kudos
Message 2 of 13
(4,039 Views)

I can't to find the right expresion. can you help me?

thank you

0 Kudos
Message 3 of 13
(4,028 Views)

See here.  You can also use the search function on the palettes and search for "logical shift".

 

 

 

Message Edited by Ravens Fan on 12-10-2008 03:49 PM
0 Kudos
Message 4 of 13
(4,014 Views)
Once you know (or have an idea of) the name of the function, hit the "Search" button and start typing.  LabVIEW will help you find it.
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 5 of 13
(3,989 Views)

 

 

The Logical Shift is x << y and I need  x>> y

 

how can I do that?

 

thanks

0 Kudos
Message 6 of 13
(3,956 Views)

 

I have this on:

 

 

wrbuffer[4] = (address >> 24) & 0x000000ff;

 

where "address" is int

what it's the LabView equivalent?

 

thank you

0 Kudos
Message 7 of 13
(3,948 Views)

Select help for the Logical Shift function then select detailed Help.

 

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. 

Visualize the Solution

CLA

LabVIEW, LabVIEW FPGA
0 Kudos
Message 8 of 13
(3,945 Views)

 

Thank you VADave but still I can't to find the answer for:

 

wrbuffer[4] = (address >> 24) & 0x000000ff; 

 

to labView

 

0 Kudos
Message 9 of 13
(3,941 Views)

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 10 of 13
(3,936 Views)