Measuring data consumption of simulink model

조회 수: 6 (최근 30일)
Anton
Anton 2024년 3월 11일
답변: Yash 2024년 3월 19일
Hi all,
have created a model in simulink that filters out a frequency using chebychev filter and goertzel algorithm. The model runs and the results are promising. I now want to get an overview of how much computational power the model uses. As in how much data is being processed when simulating the model. Is there a display window or a block that can measure this or is there any way that I can calculate how much data is being processed?
Thanks:)

채택된 답변

Yash
Yash 2024년 3월 19일
Hi Anton,
I am not aware of any direct ways of measuring amount of data being processed since Simulink primarily focuses on simulation rather than profiling computational resources. However, the following approaches can be used to estimate computational metrics of a Simulink model:
  1. Performance Advisor: It analyzes the configuration of your model and simulation and produces a report that flags and suggests changes for configuration settings that might slow down simulation. The Performance Advisor analyzes only the top model and does not analyze referenced models or linked libraries. https://www.mathworks.com/help/simulink/slref/performanceadvisor.html
  2. Solver Profiler: It analyzes the performance of the selected solver for the model and can be particularly helpful for analyzing the performance of simulations that use variable-step solvers. https://www.mathworks.com/help/simulink/slref/solverprofiler.html
  3. Simulink Profiler: It helps identify bottlenecks for simulation performance by analyzing the distribution of simulation execution time among model components. https://www.mathworks.com/help/simulink/slref/simulinkprofiler.html
  4. Tracking variables: "Simulink.findVars" command helps to find out whether a variable is being used in a given model, and where. It can help you to identify unused variables and avoid redundant usage by comparing workspaces of different models to find common and exclusive variables. https://www.mathworks.com/company/technical-articles/tips-and-tricks-tracking-variables-in-a-simulink-model.html

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by