LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to know how to divert my signal when it's value is decreasing and the send it another way when its increasing

I have a signal that decreases from 5 to 0 in steps of 0.25 and then increases from 0 to 5 in steps of 0.25. I want the signal to go my first gauge when it is decreasing then once at zero change path and go to the second gauge. Any ideas folks?

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

Use a feedback node to hold the previous value.  If the new value is greater, then write to the second guage, otherwise write to the first.  A simple case structure can hand which indicator is written to.


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 Kudos
Message 2 of 3
(2,696 Views)
Its probably just me (I'm an old man and I missed my nap time) but I don't understand the overall effect you want. If one gauge only shows the decreasing values and another the increasing values. It seems like the gauge that is off will have a large jump in value when the trend reverses and starts going in its direction.

For example, one gauge will track from 5 down to 0 at which the signal will begin increasing with the data going to the other indicator. When the signal reaches 5, it will start decreasing and the first gauge will now jump from 0 to 4.75.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 3
(2,666 Views)