Initialize Simulink's "MATLAB System" block for codegen with unsupported codegen functions at "setup time"
이전 댓글 표시
I would like to be able to call unsupported codegen functions (like exist() or evalin()) within a MATLAB System object at setup time so that I can initialize all of the objects necessary internal state. I would like the resulting system object to run in codegen mode.
The only way I've found to do this is to use a static routine in the System object which then modifies blocks in the Simulilnk model. It is very much a work around.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Create System Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
