필터 지우기
필터 지우기

How do I manage the Model configuration parameters when using variant with several system targets ?

조회 수: 2 (최근 30일)
My objective is to be able to generate the code of a model to several system targets.
By using variant subsystems, I'm able to select the target's specific blocks but not the model configuration parameters.
Is there a way?

채택된 답변

Fangjun Jiang
Fangjun Jiang 2022년 7월 27일
You can have multiple model configuration sets saved with the model and switch them. It can be done manully or through API.
  댓글 수: 5
Fangjun Jiang
Fangjun Jiang 2022년 7월 29일
Indeed, I didn't find a way to link them, not even some type of callback to use the API to switch model configuration.
If you are using later versions, please consider the "sim codegen switching" for "variant conrol mode". You might be able to switch codegen target directly in variants.
R2017b is too old. It doesn't have this capability.
Search "sim codegen switching" at this link
cedric manoury
cedric manoury 2022년 8월 4일
Thanks for your reply, it confirms me 2 points : no links is available and RT2017b is too old...
I'll update soon my package, so it should solve my problem. If not I'll try this trick : put codes in blocks's callback which are managed by variant.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Manage Variant Modeling Components에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by