Controller Design in Model Based Design

3 views (last 30 days)
creative on 8 Apr 2020
Answered: Rhea Chandy on 30 Mar 2021
I am designing a PID controller and later on need to generate code out of it. The plant model is in continuos domain and PID controller should be in Discrete Domain. So can i directly design a discrete controller in simulink with continuous plant model? I am confused how do i interface discrete part to continuos part.Also Will i be able to use classical analysis tools and methods for stability analysis within the hybrid model?
Thank you.

Answers (1)

Rhea Chandy
Rhea Chandy on 30 Mar 2021
Yes, If your controller block is discrete, you can pass them directly into continuous block(s), so that you will have a discrete input acting on a continuous-time plant.
Take a look at this previously answered question for an example of how this is done: How to convert a signal from discrete to continuous in Simulink block diagram?
You should be able to use any classical analysis tools and methods you need on this model. Here's some information on Control System Design and Tuning .

Community Treasure Hunt

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

Start Hunting!

Translated by