Running two control systems with different rates

Hello,
I have a relatively general question. I have two control systems that communicate with each other (one feedforward controller and one MPC) and I am trying to make one of these systems faster than the other one in terms of sampling rates. For example, I want the feedforward controller to be slower than the MPC.
Is there a Simulink block that can help me implement this?
Thank you

4 comentarios

Paresh yeole
Paresh yeole el 4 de Jun. de 2020
Setting the sampling time in MPC to be lower would do the work.
patr chri
patr chri el 4 de Jun. de 2020
@Paresh
For the feedforward controller, I should use a high sampling rate in the settings of the Simulink Solver since it is working with Simulink settings, right?
In other words, if I had a PID controller based on the Simulink PID block, if I would want to make it slower I would have to change the simulink settings?
Paresh yeole
Paresh yeole el 4 de Jun. de 2020
For the first question, Yes.
For the second question, you are correct if you have selected as -1 for sampletime option for the PID block. You can have a user-defined value for the PID block as well.
patr chri
patr chri el 5 de Jun. de 2020
My issue is that when I am trying to change the MPC sampling rate to make it faster (ie smaller sampling rate) it doesn't allow me because it is not dependent (integer product) of the Simulink settings fixed solver sampling time.

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Preguntada:

el 4 de Jun. de 2020

Comentada:

el 5 de Jun. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by