Integrator

The Integrator object integrates the input value with respect to time using the trapezoidal rule:

y = Y + (t – T)*0.5*(x + X)

where:

y = present output value for the integrator

x = present input to the integrator

t = present simulation time

Y = output value for the integrator at the last update time

X = input to the integrator at the last update time

T = simulation time at the last update

The value returned by the Integrator 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.