Lag

The Lag object calculates the lag operation used in electronic control systems.

y = Y + (t – T)*(x – Y)/LagTime

where:

y = present output value for the Lag object

x = present input to the Lag object

t = present simulation time

Y = output value for the Lag object at the last update time

X = input to the Lag object at the last update time

T = simulation time at the last update

The value returned by the Lag object is calculated on demand.  The update signal received from the Controller is used only to record the values Y, X, and T used in the calculation.