Controller Design in Model Based Design
3 views (last 30 days)
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?
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 .