Measuring data consumption of simulink model

5 次查看(过去 30 天)
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