Integrator with variable initial conditions

| Vectorized | C |
in the palette on the schematic

The block implements the integration of the input signal (s):

where xi(t) are the elements of the input signal vector, yi(t) are the elements of the output signal vector, t1 and t2 are the switching times of the initial conditions. At t = t1, new initial conditions are established, and at t1 < t < t2, the signals of the input vector are integrated with these new initial conditions. At t = t2 another change of initial conditions takes place and at t > t2 another integration step with new initial conditions is performed up to the new next change of initial conditions. The initial conditions are switched only when the control signal changes from one value, e.g. from 1 to another value, e.g. 2, or vice versa, from 2 to 1. The dimensions of the signal to be integrated and the initial conditions signal must be the same, e.g. if the input vector is "three-core", then the initial conditions signal is also "three-core".

Inputs

  • input - vector signal being integrated;
  • control - control signal;
  • new_out0 - vector of a new initial conditions.

Outputs

  • output - output signal.

Properties:

  • Way to reset - allows to select the moment of reset.

Parameters

  • Dynamic variables - internal block condition variables;
  • Derivatives - internal block condition variables.
Прим.:
  1. By default the block implements integration of scalar input signal.
  2. It is recommended (though not obligatory) to use the values of control signals 0 and 1, because their formation is easily realized by typical logic blocks.