LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding the slope of a tangent to a curve

Solved!
Go to solution

Hello everyone,

I would appreciate guidance to any specific built-in subVI or routine which I can use to draw a tangent to a curve and find its slope. Specifically, I will need to to able to draw this tangent at any user specifed y-value. In order to keep it very accurate, I will not like to use any arbitrary cursors. The curve itself is drawn from a text file data which is read and passed onto an xy-graph.

 

Any guidance will be much appreciated.

 

cheers,

Navneet

0 Kudos
Message 1 of 4
(3,800 Views)

Will this help you? Post back.

 

Mathan

0 Kudos
Message 2 of 4
(3,796 Views)

Not really Mathan, going through it still.

For argument sake, lets assume an exponential increasing function and i want to find the slope at the point where y = 0. what will be the most optimum approach for this?

Thanks for your reply, kindly appreciated.

0 Kudos
Message 3 of 4
(3,783 Views)
Solution
Accepted by topic author navneet

If you know that an exponential is a good theoretical model for your data, then fit the data to an exponential function with one of the curve fitting VIs.  Take the derivative of the fitted function at x.  Result is slope.

 

Lynn

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