How do I analyse the needed amount of dynamic memory for a Simulink Model?

조회 수: 17 (최근 30일)
Philipp Kühl
Philipp Kühl 2023년 5월 10일
편집: Anand Ganesan 2023년 10월 19일
I'm working on a project for which I want to analyse the amount of dynamic memory a Simulink Model would need on a processor (Matlab R2021b).
I already found some nice analysis functions for static memory and run time inside the embedded coder toolbox, but sadly there are no information about dynamic memory analysis.
After I spent quite some time searching through the internet for a solution, I still couldn't find any function for this.
Does anyone know a way how dynamic memory usage can be analysed?
Thanks in advance!
  댓글 수: 1
Anand Ganesan
Anand Ganesan 2023년 10월 19일
편집: Anand Ganesan 2023년 10월 19일
Hi Philipp, I've exactly the same need as you. Did you manage to find a work around?

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

답변 (1개)

Piyush
Piyush 2023년 5월 16일
Try the following ways to analyse the dynamic memory requirements-
  1. Run the Simulink model and type the command “memory” in MATLAB command window.
  2. Use Task manager in window. Run the simulation and check the amount of memory used by it in the Task Manager.
  댓글 수: 1
Philipp Kühl
Philipp Kühl 2023년 5월 22일
As far as I understand "memory" it shows the capacity of RAM for your PC and the amount Matlab is currently using (not only for the current skript, but also to run the development environment). But I'm interessted for the RAM that is used only for the execution of a certain Simulink Model, that is later used on an embedded system. The numbers I get from "memory" are a lot higher than expeceted for this (screenshot). Is there a way to show how much RAM Matlab uses for certain purposes?

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

카테고리

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

Translated by