LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Derivative of a Function Plot

Hi,

 

I am a beginner in LabView and I am having some trouble to plot the derivative of a function on XY Graph.

 

The problem is that the last point shoot down very much and I don't know how the derivative function work. Can anyone help ?

 

Thanks in advance

0 Kudos
Message 1 of 3
(2,834 Views)

The definition of the derivative given in the detailed help defines y[i] = (x[i+1] - x[i-1])/(2 * dt).  When i = N-1 (last element), what is the value of x[i+1]?  That data point does not exist, so the default value will be used.

 

If you want the ends of the plots to be meaningful, you need to use the Initial Condition and Final Condition inputs.  Read the Detailed Help for the Derivative VI for more information about how to use them.

 

Lynn

Message 2 of 3
(2,810 Views)

Thanks a lot John. Already solved the problem.

0 Kudos
Message 3 of 3
(2,754 Views)