필터 지우기
필터 지우기

How to check memory occupancy of a Simulink Model?

조회 수: 2 (최근 30일)
Matteo Manzini
Matteo Manzini 2020년 3월 25일
답변: Fangjun Jiang 2020년 3월 25일
Hello,
I designed a Simulink model in two different ways. After converting from floating-point to fixed-point by means of the fixed-point tool I saw there is not much difference. Therefore, I want to use the block which uses the least memory.
How can I check the memory occupancy of a model or better of a single Simulink block?
Thanks in advance for any reply!!!
  댓글 수: 2
Fangjun Jiang
Fangjun Jiang 2020년 3월 25일
why?
Matteo Manzini
Matteo Manzini 2020년 3월 25일
I then want to generate code to use it on a controller.

댓글을 달려면 로그인하십시오.

채택된 답변

Fangjun Jiang
Fangjun Jiang 2020년 3월 25일
No such capability as of R2019b. We've submitted similar requests to the Mathworks.
There are something that might be helpful. Set code generation objectives to be RAM efficiency, ROM efficiency or Execution effeciency. Enable static code metrics report.
More realistic approach is to generate code first and then use your C compiler to get the relevant (but not exact) info.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Additional Math and Discrete에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by