LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Newbie question about the ^ operator?

I have a formula box inside a for loop. The for loop has the standard I32 variables N and i. Additional DBLE variables dx, lo for input and x,y arrays for output are declared in the formula box. The following equations are coded in the formula box: x=lo+i*dx; y=5.0*x^4;
I am getting an "integer required" error for line 2. I get the same error if I code y=x^2; but the error disappears if I code y=x*x; What's up with the ^ operator? LabVIEW 6i, version 6.0.2, Windows 2000 Professional SP1.
0 Kudos
Message 1 of 2
(2,566 Views)
The ^ operator is bit exclusive or. Exponentiation is **. This changed from LabVIEW 5 to 6.
0 Kudos
Message 2 of 2
(2,566 Views)