필터 지우기
필터 지우기

Can the code-generation parameters of a protected model be changed after protection?

조회 수: 1 (최근 30일)
I'm receiving a protected Simulink model and I'd like to edit the code-generation parameters prior to building my top-level system.
Using a dummy model, I've tried attaching a configuration reference file to the protected system prior to protecting it, in hopes that I could edit the parameters in the reference and affect the protected model. This didn't seem to work. Any changes I made to the configuration reference file after protection didn't seem to affect the protected model.
Is there any way to change the configuration parameters of a protected model (specifically the code-generation options)?

채택된 답변

Sherman
Sherman 2015년 5월 6일
Hi Casey,
It is not possible to alter a model once it has been protected since that would defeat the purpose of protecting it. This includes code-generation configuration parameters.
In R2015a, it is possible to include multiple targets in a protected model. Each target is identified by its System Target File. Thus you could potentially have two targets, each configured differently, inside the same protected model. This might help solve your issue.
Sherman
  댓글 수: 1
Thomas Becker
Thomas Becker 2018년 2월 9일
Hi Sherman,
as you describe, there is an option to include multiple targets. That's exactly what I need - but I neither find any documentation nor option to achieve that. How is the issue handled internally? Is the code generated for 2 targets, an the top model including the protected model determines the finally used code?
Thanks a lot in advance!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by