Fixed-Point Blockset    
Integrator Trapezoidal Resettable Limited

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

Library

Calculus

Description

The Integrator Trapezoidal Resettable Limited 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 cumulative sum reaches one of the limits given by the Upper limit and Lower limit parameters, the sum saturates to that limit.

When the reset signal R is false at time step 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. The block also 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.
Upper limit
The upper limit for saturation of the cumulative sum.
Lower limit
The lower limit for saturation of the cumulative sum.
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


  Integrator Trapezoidal Resettable Interval Test