Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Simulink and .m file comunication. It is possible?

1 visualización (últimos 30 días)
Gustavo
Gustavo el 23 de En. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hi,
I have a system modeled in simulink. Its a PDE, so I used the finite differences to discretizate the spatial derivative and the time derivative is solved in continuous time, to do this I used the S-function block.
Now I have to get some outputs of my model, because I doing the control of my system. The problem is: the control of my system its in discrete time, because I use some outputs of my model to predict the future output. Is there somehow to comunicate my system in continuous time in a determinated instant with my .m file with the controller?
My .m file has a loop for to control my system, so in a instant (k) I need the output of my model in the simulink, to do the equations of my controller and then send the input of the controller to my simulink model again. Is it possible?
best reguards
Gustavo

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by