Can I generate code for my Simulink model with SimEvents

5 visualizaciones (últimos 30 días)
Gerald
Gerald el 24 de Mzo. de 2016
Comentada: Boyang Song el 11 de Jun. de 2018
I would like to generate the code from my Simulink model that contains SimEvents blocks. It's giving me an error "Code generation and accelerator modes are not supported for models with SimEvents blocks."
Do you know if I can get the code with the SimEvents blocks in the model? If not, why?

Respuestas (1)

Teresa Hubscher-Younger
Teresa Hubscher-Younger el 25 de Mzo. de 2016
Hi,
I am sorry to say that the error message is giving you correct information - you can not generate code for the SimEvents blocks in the model.
Is it critical that you generate code for those blocks? If so, I would like to talk to you more.
If it is not, you can put the blocks in a subsystem or model (and use model reference) for which you wish to generate code and then either generate code for that subsystem or model.
-Teresa
  4 comentarios
Teresa Hubscher-Younger
Teresa Hubscher-Younger el 16 de Ag. de 2017
Hi, The 17b SimEvents prerelease has a cool feature where the MATLAB Discrete Event System block generates code for acceleration purposes. So, I would say checking in on this capability makes sense. But for now, my answer for deployment purposes still stands. -Teresa
Boyang Song
Boyang Song el 11 de Jun. de 2018
Hi Teresa,
Glad to see you here.
May I re-check the this question for 2018-19?
Many thanks

Iniciar sesión para comentar.

Categorías

Más información sobre Discrete-Event Simulation en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by