Discrete PI Controller

Implement discrete PI controller

  • Library:
  • Motor Control Blockset / Controls / Controllers

Description

The Discrete PI Controller block performs discrete-time PI controller computation using the error signal and proportional and integral gain inputs. The error signal is the difference between the reference signal and the measured feedback. The block outputs a weighted sum of the input error signal and the integral of the input error signal.

You can tune the Discrete PI Controller coefficients (Kp and Ki) either manually or automatically. Automatic tuning requires Simulink® Control Design™ software.

Ports

Input

expand all

Difference between a reference signal and the system output.

Data Types: single | double | fixed point

Proportional gain value that you can compute either manually or automatically.

Data Types: single | double | fixed point

Integral gain input that you can compute either manually or automatically. You must premultiply the integral gain value by the integrator sample time (Ts) for the block to execute within asynchronous interrupts.

Data Types: single | double | fixed point

Output

expand all

Control signal that is identical to the reference signal.

Data Types: single | double | fixed point

Introduced in R2020a