Simulink: Determine time needed for simulation

조회 수: 1 (최근 30일)
Mari
Mari 2013년 6월 12일
Hi everybody!
I am trying to determine the time that a simulation needs to run on my computer in different modes, excluding the compilation and initialization period.
I have tried putting tic and toc commands in the Model callbacks StartFcn and StopFcn, but that gives me the overall time- what I want to know is only the time it takes from the first to the last simulation step.
Is there a way to do this?
Thank you very much for your help!

답변 (1개)

Ryan G
Ryan G 2013년 6월 12일
You can use the Simulink Profiler
  댓글 수: 2
Mari
Mari 2013년 6월 12일
That would be an option, but I would like to automate the process: A matlab script should start the simulation a couple of times and each time save the time needed to a file.
Ryan G
Ryan G 2013년 6월 12일
You could do what you're doing now and subtract the update time acquired using the model command.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Configure and View Diagnostics에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by