필터 지우기
필터 지우기

How to shared model configuration and control main model code interface

조회 수: 2 (최근 30일)
Hello, I have a model using referenced models and I want to generate code. I have the possibility to create a shared configuration for my models so I can "arrange" 1 configuration for all models. When I have to change some configurations it is easyier to work with. But, with the shared configuration, the code interface (argument of step function) are not available in the configuration and the step function has no argument anymore. Do you know a solution to manage the code interface with shared configuration? What is the best practice for using shared configuration with code generation?

채택된 답변

Yohann GOYER
Yohann GOYER 2018년 12월 20일
This bug is fix in 2018b version.
With the latest version of matlab, we can share model configuration with referenced model and generate code.
The function interface is no outside the configuration.
So as it is independant of the model configuration it is possible to share it.
To find the function interface configuration you shall now search a bite as it is well hiden.
This can be access throught: Configure Model in Code Peerspective -> Code Mappings -C -> Entry-Point Functions.
Then in function name column use the 3 dots (verticals) to open the function interface panel that is quite the same as before.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 C Service Interfaces에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by