LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Eval interval error

I am trying to use the "Eval y=f(x).vi" in Labview 7.1, and I believe there is an error in the .vi.

In the block diagram, it finds the data interval by dividing the range (end-start) by the total number of points. Should it not divide the total range by one less than the number of points? Otherwise it will not include the end-point.

Is this the intended behavior? To exclude the end point? Or is this an error in the code? I would like to include both end points in my resulting curve.

Thanks,
Scot
0 Kudos
Message 1 of 2
(2,476 Views)
Yeah, I see what you mean.

You could edit this VI to accomplish what you want. Where the number of points comes in, subtract one before the division. This will adjust the "step" such that the for loop will use the start and end points in the calculation now.

Good catch!
0 Kudos
Message 2 of 2
(2,476 Views)