Filter löschen
Filter löschen

How do I access the data of the profiler_object in Simulink Real Time?

1 Ansicht (letzte 30 Tage)
How do I access the data of the profiler_object in the Simulink Real Time?
In the documentation, 
Under the Output Arguments section, it says that "You access the data itself only by calling the plot and report functions.". But, I want to access the data within the report for post processing.
How do I do that?

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 1 Jun. 2023
Bearbeitet: MathWorks Support Team am 6 Okt. 2021
1) Set the code profiling options in Configuration Parameters > Code Generation > Verification. Define the woskspace variable name, for example, "executionProfile". Select "All data" for Save options.
2) Build the model and run the profiler.
3) Execute "getProfilerData" to get the profiler_object.
4) Execute "report" on the profiler_object.
5) You will see a variable is created in the MATLAB workspace called "executionProfile". You can then access the data in this variable in a similar manner as this data object

Weitere Antworten (0)


Mehr zu Schedule Model Components finden Sie in Help Center und File Exchange


Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by