Profiling c-code generated from SIMULINK

2 visualizzazioni (ultimi 30 giorni)
Ulrika
Ulrika il 20 Lug 2014
Risposto: Mark McBroom il 10 Dic 2017
I would like to do profiling (measure execution time and possibly RAM and ROM usage) on the c code generated form my SIMULINK model by using the embedded coder.
From the information on Mathworks website I found that one can do this by configuring the Code generation < Verification pane, in the Configuration Parameters dialog box.
However, I cannot find any Verification pane in my Configuration Parameters dialog box.
I have a license for the embedded coder. Do I need any add-on (perhaps the Validation and Verification toolbox?) to be able to perform the c code profiling? If this is the case, is there any other way I can perform the c-code profiling using other tools in SIMULINK or MATLAB?
Thanks for your help, Ulrika

Risposte (1)

Mark McBroom
Mark McBroom il 10 Dic 2017
You have found the correct approach for profiling code generated by Embedded Coder. Additional software licenses are not required. This link provides details. Note that if you want to collect execution time on a targer processor using Processor in the Loop (PIL) mode, you will need to write a small amount of code to define a timer on the embedded processor.

Categorie

Scopri di più su Deployment, Integration, and Supported Hardware in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by