simulink embedded coder block is eliminated
32 ビュー (過去 30 日間)
古いコメントを表示
현재 Matlab simulink에서 제작한 제어 시스템을 ARM 9에서 사용하기 위해 Embedded coder를 사용중에 있습니다.
simulink 안에는 여러개의 Matlab simulink function으로 구성되어 있으며,
coder를 사용하여 code generation을 하면 대부분의 simulink function 블록이 code에 구현이 되지 않고 아래와 같은 문구를 확인할 수 있습니다.
- Block ~ is eliminated by code generation optimization. Code is not generated for eliminated blocks.
위와 같은 에러가 왜 발생하는지 확인이 불가능하여 질문 남깁니다.
Currently, the embedded coder is being used to use the control system made by Matlab simulink in ARM 9.
simulink consists of several Matlab simulink functions.
When i use a Embedded coder to generate code, most of the simulink function blocks are not implemented in the code, and you can see the following phrases.
Block ~ is eliminated by code generation optimization. Code is not generated for eliminated blocks.
It is impossible to check why the above error occurs, so I leave a question.
0 件のコメント
回答 (1 件)
Sreeranjani Sekar
2021 年 11 月 10 日
Yes blocks/signals which do not contribute to the model and virtual blocks will not genrerate any corresponding code. This is an intented behaviour of embedded coder to achieve optimization in the generated code.
But this optimization can be avoided by uncheking the block reduction. It can be found in Configuration Parameter > Simulation Target > Advanced Parameter> block reduction.
But please note that code will be generated for all the blocks in the model which might increase the complexity.
2 件のコメント
Sreeranjani Sekar
2021 年 11 月 16 日
- Click on Simulation Target in config paramater
- Scroll down and hover over to 3 dots that can be found under Reserved names
- Click on it to view the advanced parameter.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!