Clear Filters
Clear Filters

In matlab coding of PID, can I convolve error with pid equation

1 view (last 30 days)
I want to write Matlab code for pid controller.Since I am new to controllers so can anyone please guide me that to write code shall I take Laplace inverse of the equation C=Kp + Ki/s + Kd*s; And then convolve it with the error which is a scalar value e.g 3. Is this an appropriate way or not?
  1 Comment
Arkadiy Turevskiy
Arkadiy Turevskiy on 2 Jan 2013
It is not clear what exactly you are trying to do. Please be more specific in what you are trying to calculate/design/simulate.
If you want to simulate a closed loop control system, your error term would not be constant and you do not need to do convolutions to calculate time-domain responses.

Sign in to comment.

Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!