Fixed-Point Blockset    
Integrator Trapezoidal Resettable

Perform discrete-time integration of a signal using the trapezoidal method, with external Boolean reset

Library

Calculus

Description

The Integrator Trapezoidal Resettable block performs a discrete-time integration of a signal using the trapezoidal method.

The block can reset its state based on an external reset signal R. When the reset signal R is false at time k, the block calculates the output at time k by the rule

where is the input at time k and

When the reset signal R is true at time k, the block resets the output y(k) to the value of the Initial condition for previous output parameter, and resets w(k) to the value of the Initial condition for previous weighted input K*Ts*u/2 parameter.

Parameters and Dialog Box

Gain value
Specify the weight by which the sample time is multiplied.
Initial condition for previous output
Set the initial condition for the previous output.
Initial condition for previous weighted input K*Ts*u/2
Set the initial condition for the previous weighted input.
Output data type and scaling
The options are:
Round toward
Rounding mode for the fixed-point output.
Saturate to max or min when overflows occur
If selected, fixed-point overflows saturate.

Characteristics

Input Ports
Any data type supported by the blockset
Output Port
Same as the input
Direct Feedthrough
Yes, of the input and reset source ports
Scalar Expansion
Of inputs and gain

See Also

Integrator Backward, Integrator Backward Resettable, Integrator Backward Resettable Limited, Integrator Forward, Integrator Forward Resettable, Integrator Forward Resettable Limited, Integrator Trapezoidal, Integrator Trapezoidal Resettable Limited


  Integrator Trapezoidal Integrator Trapezoidal Resettable Limited