How do I make sure the generated code for the MATLAB Function block interface contains all input ports?

 I have a model that only contains a MATLAB Function Block and root-level in/outports. For this model, I generate C code using Embedded Coder. When integrating the code into my project, I noticed that the build fails because the function interface for the MATLAB function block is missing 2 input arguments. How can I prevent this?
 

 채택된 답변

You can do this is by setting the storage class on the root level inputs of the model. In R2019b you can set the default storage class for all inports in the model through the Code Mappings editor:


추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

제품

릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by