LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding Increasing Data

Solved!
Go to solution

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 Kudos
Message 1 of 7
(3,034 Views)
Solution
Accepted by topic author 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
Message 2 of 7
(3,032 Views)
Solution
Accepted by topic author 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.

Message 3 of 7
(3,030 Views)

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

0 Kudos
Message 4 of 7
(3,014 Views)
Solution
Accepted by topic author winterfresh11

something like this...

Message 5 of 7
(3,001 Views)

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

0 Kudos
Message 6 of 7
(2,989 Views)

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 Kudos
Message 7 of 7
(2,988 Views)