Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

totalizing a flow rate but not calculating if a negative number

I know how to take a flow rate and produce a totalizer using an integration. What I would like to do is not calculate the integration if the incoming rate should be a negative value. Thanks in advance for your help.
0 Kudos
Message 1 of 2
(3,284 Views)
hound,

you may use an EXPRESSION OBJECT to eliminate negative values, something like:

if(YourSignal.value>0, YourSignal.value, 0)(if the value of your signal is greater than zero, use your signal, else zero)

and connect the output of this object to INTEGRAL.

Hope this help

JPSS
0 Kudos
Message 2 of 2
(3,274 Views)