How to pass pointer arguments in Simulink for auto-generated code?
조회 수: 2 (최근 30일)
이전 댓글 표시
The Simulink code generator generates call by reference functions but uses global variables. I need to make a reusable susbsystem which can accept different data store inputs similar to a call by reference implementation in C. How should I proceed?
Referenced subsystem block
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1100865/image.png)
Referenced subsystem call
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1100870/image.png)
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!