필터 지우기
필터 지우기

Simultaneus code generation of two matlab functions with same inputs

조회 수: 1 (최근 30일)
Mats
Mats 2022년 9월 28일
I have two Matlab function blocks in one Simulink model with same inputs (defined as Simulink buses). The outputs are different.
I want to generate C code for these two functions, and use generated code in same project. With two separate models the input struct definitions will be generated twice, with compiler warnings as a side effect.
Is it possible to combine these two models in one model, and generate code for both functions in one step? I basically want to have generated C code of input struct definitions and two C functions in one and same C file? Can I define the interfaces of my two step functions?
I experimented with reusable code and atomic units but a lot of garbage is generated in addition to what I want. Any elegant way?

답변 (0개)

카테고리

Help CenterFile 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