06-14-2010 11:00 AM
hi
I use labview 8.6.1
When I try to use the formula node, even with a very simple formula /:
x^3-x^2+5
when x equals 10 , it gives me the output of -6.1..
but it should be 905,
and some times it gives me an error of integer type required: e.g: y=x^3,when th input is 10.
Solved! Go to Solution.
06-14-2010 11:06 AM
06-14-2010 11:06 AM
I ran into that exact same problem earlier.
Contrary to any intuition, the ^ operator does not mean exponent, it means bit XOR.
The operator you should use is **
Try this expression:
x**3 - x**2 + 5
06-14-2010 11:07 AM
In the formula node you need to use ** to indicate power. This is documented in the LabVIEW Help.
Any reason you're using the formula node as opposed to using straight G?
06-14-2010 11:08 AM
06-14-2010 11:14 AM
06-14-2010 11:16 AM
smercurio_fc wrote:
I see everybody is picking at the low-hanging fruit.
Its a Monday![]()
06-15-2010 09:17 AM