ni.com is currently experiencing unexpected issues.

Some services may be unavailable at this time.

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

Finding Increasing Data

解決済み
解決策を見る

Hello all,

 

I have a numeric indicator that is displaying numbers (data) that go up and then go down and then go back up and so on. I'd like to find a way to trigger a boolean to say True whenever the data starts increasing but I can't figure out the logic to do that. Any suggestions would be great.

0 件の賞賛
メッセージ1/7
3,507件の閲覧回数
解決策
トピック作成者winterfresh11が受理

Feedback node to keep track of the previous value and then a Greater Than to do the 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
メッセージ2/7
3,505件の閲覧回数
解決策
トピック作成者winterfresh11が受理

You can keep track of last received value and compare the current value against last one. If current is higher than previous, trigger boolean. You can use either shift register or feedback node to keep last value.

メッセージ3/7
3,503件の閲覧回数

I'm a bit confused on how to use a feedback node to keep track of the previous value

0 件の賞賛
メッセージ4/7
3,487件の閲覧回数
解決策
トピック作成者winterfresh11が受理

something like this...

メッセージ5/7
3,474件の閲覧回数

Thank you that makes much more sense after seeing how the feedback node should be used!

0 件の賞賛
メッセージ6/7
3,462件の閲覧回数

The posted example should help but here is a link explaining it some more, which also mentions a shipped example.

 

http://zone.ni.com/reference/en-XX/help/371361J-01/glang/feedback_node/

0 件の賞賛
メッセージ7/7
3,461件の閲覧回数