Is it possible to programmatically count the number of times a block is called during a simulation?
조회 수: 1 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2020년 4월 7일
답변: MathWorks Support Team
2020년 4월 7일
Is it possible to programmatically count the number of times a block is called during a simulation?
채택된 답변
MathWorks Support Team
2020년 4월 7일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Block Libraries에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!