Is it possible to programmatically count the number of times a block is called during a simulation?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 7 Avr 2020
Réponse apportée : MathWorks Support Team
le 7 Avr 2020
Is it possible to programmatically count the number of times a block is called during a simulation?
Réponse acceptée
MathWorks Support Team
le 7 Avr 2020
Yes, it is possible through the Simulink Profiler. As of MATLAB R2020a, it is possible to retrieve the information regarding the number of calls to a block in the following way:
>> profilerData = out.SimulationMetadata.TimingInfo.ProfilerData
>> profilerData.rootExecNode.children(3).children(1).children(2)
For more information on the Simulink Profiler, visit the following page:
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Block Libraries dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!