How can I get a simulink model to execute in real-time?
Mostrar comentarios más antiguos
I'm trying to get a Simulink model of a quadrotor and controller to accept inputs and run at real-time speed. My goal is to have this low-level controller interface with a higher level controller in Python
Respuestas (2)
Walter Roberson
el 28 de Ag. de 2015
0 votos
Simulink Real Time execution requires generating code . There is no way to talk to Python unless it is on a different system, or unless Python can be called as C or C++ that is able to run with the destination Real Time Operating System.
An alternative to Simulink Real Time is Simulink Coder which can generate C or C++ code that can be compiled for any target, possibly hosted (that is, has an operating system.) The ability to run in Real Time on a hosted target would depend upon the facilities provided by the host operating system; for example you can do it with some Linux and Linux-like operating systems, but it is problematic with MS Windows, which thinks it should be able to (for example) defragment your terabyte disk drives in the middle of patient surgery.
1 comentario
Ryan
el 28 de Ag. de 2015
Bo Li
el 28 de Ag. de 2015
0 votos
Regarding the communication from Python to MATLAB, you may consider Python Engine:
This feature was introduced in R2014b.
2 comentarios
Ryan
el 28 de Ag. de 2015
Alma Martinez
el 21 de Jun. de 2018
Hi, you can send data from python to matlab?, Using a 'communication in real time?, is it possible with python engine or another tool?
Categorías
Más información sobre Classical Control Design en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!