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: 

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
(3,781 Views)
Solution
Accepted by 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
(3,778 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
(3,770 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
(3,756 Views)

not fixed in LabView 2009.. =/

thread can be closed

0 Kudos
Message 5 of 5
(3,711 Views)