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

1 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 1 Giu 2023
Modificato: MathWorks Support Team il 6 Ott 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

Più risposte (0)

Categorie

Scopri di più su Simulink Report Generator in Help Center e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by