From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

formula node

Solved!
Go to solution

i am using a formula node to shift my "uInt32 input" into 2 "uInt16" variable's ..

 

Code in formula node :

 

/* Start */

uInt16 outputHigh = 0;

uInt16 outputLow = 0;

 

outputHigh = (input >> 16);

outputLow = (input & 0xFFFF);

/* End */

 

outputLow workrs fine .. but the High part doesnt work correctly ..

input = 0xEEEEEEEE and outputHigh results 0x7FFF for example ..

 

what i am making wrong??! 🙂

 

thanks so far ..

best regards, Sascha

0 Kudos
Message 1 of 5
(2,961 Views)
Solution
Accepted by topic author monXii

There is a known bug with shift in a formula node.  (See here).

 

You don't need a formula node for all this, just use split number. 😄

Message Edited by altenbach on 08-18-2009 08:47 AM
0 Kudos
Message 2 of 5
(2,958 Views)

mh .. ok

2 hours lost for nothing 😛

 

thanks for fast help!

 

is this bug still in LabView 9 ? 😃

when not i'll install it now 😉

Message Edited by monXii on 08-18-2009 10:50 AM
0 Kudos
Message 3 of 5
(2,950 Views)

monXii wrote:

 

is this bug still in LabView 9 ? 😃

when not i'll install it now 😉


Just checkd this... monXii, you have to wait LabVIEW 10... 😉 🙂

 

Andrey.

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

not fixed in LabView 2009.. =/

thread can be closed

0 Kudos
Message 5 of 5
(2,891 Views)