ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

How to calculate slope of XY curve?

解決済み
解決策を見る

Hi all,

 

I want to calculate the slope of a X-Y curve, for example, amplitude v.s. position. I was trying to use the derivative method but failed. Could anyone help me with this problem? The example vi. is attached.

 

 

 

Regards,

Nicky.

メッセージ1/10
15,698件の閲覧回数
解決策
受理者 Nicky87

Like this

Tim
GHSP
メッセージ2/10
15,692件の閲覧回数

Dang it, too slow...

 

Try the Linear Fit VI

メッセージ3/10
15,690件の閲覧回数

Although it involves a Rube method as compared to Linear Fit, the attached vi teaches what a slope really is.

 

- tbob

Inventor of the WORM Global
メッセージ4/10
15,622件の閲覧回数

Can you post the same solved example with labview 8.2?

0 件の賞賛
メッセージ5/10
15,299件の閲覧回数

Here is an 8.0 version.

Tim
GHSP
0 件の賞賛
メッセージ6/10
15,282件の閲覧回数

Hey

Attached is the Vi.

Could you please help me if I want to find the slope and I want to stop the loop and measurement when the maximum slope has been attained.

Help will be very much appreciated.

 

 

0 件の賞賛
メッセージ7/10
15,254件の閲覧回数

How are you defining "maximum slope".  Is it a simple threadhold (stop when slope >= a set value) or are you looking for the inflection point (calculating on the fly the maximum slope and stopping when it is reached)?  The threshold is a simple comparison.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 件の賞賛
メッセージ8/10
15,249件の閲覧回数

No it is infection point, as in after getting the measurement value , finding the slope and stopping when the slope is highest as in it has maximum deviation from the previous value.

0 件の賞賛
メッセージ9/10
15,247件の閲覧回数

You should be having a Max limit value so that you can compare on the fly and stop if the max slope is achieved. Check the attached example and also keep it in a single thread

 

Slope max.png

 

Good luck 

 

-----

The best solution is the one you find it by yourself
0 件の賞賛
メッセージ10/10
15,221件の閲覧回数