Filter löschen
Filter löschen

Measuring data consumption of simulink model

2 Ansichten (letzte 30 Tage)
Anton
Anton am 11 Mär. 2024
Beantwortet: Yash am 19 Mär. 2024
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:)

Akzeptierte Antwort

Yash
Yash am 19 Mär. 2024
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

Weitere Antworten (0)

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Produkte


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by