LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

creating a data simulator and geting an error i cant figur out

I am new to labview and i am using labview 7.1 student version. I am creating a data simulator and geting an error in my for loop. I have attached my program. if someone  can help it would be appreciated.
0 Kudos
Message 1 of 4
(2,300 Views)
The error message says 'integer type required". You are doing a bit exclusive or with "X^4" and that requires you to make X an integer. If you did not intend to do the bit exclusive or, what did you really want to do?
0 Kudos
Message 2 of 4
(2,293 Views)

Hi marcv,

      When I open your VI it's broken and the error seems related to this term in a formula node:

Y=5*X^4  (The ^ function wants an integer, but X is a float)

To raise X to the 4th, try:

Y=5*pow(X,4)

Cheers.

Message Edited by Dynamik on 04-15-2006 07:06 PM

Message Edited by Dynamik on 04-15-2006 07:10 PM

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 3 of 4
(2,292 Views)
thanx Dynamic that woks.Smiley Very Happy
0 Kudos
Message 4 of 4
(2,283 Views)