Can I generate code for my Simulink model with SimEvents

조회 수: 5 (최근 30일)
Gerald
Gerald 2016년 3월 24일
댓글: Boyang Song 2018년 6월 11일
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?

답변 (1개)

Teresa Hubscher-Younger
Teresa Hubscher-Younger 2016년 3월 25일
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
Teresa Hubscher-Younger
Teresa Hubscher-Younger 2017년 8월 16일
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 2018년 6월 11일
Hi Teresa,
Glad to see you here.
May I re-check the this question for 2018-19?
Many thanks

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Discrete-Event Simulation에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by