use xpcbench to bench a user model using simulink real-time 2015b

조회 수: 5 (최근 30일)
Howard Loewen
Howard Loewen 2024년 10월 31일
답변: Dimitri MANKOV 2024년 11월 5일
Hi,
I am trying to bench test my simulink real-time model on a target PC using xpcbench command.
When I ran xpcbench('my_model'), it tried to run the model with small time steps a couple of times and failed to come up with the smallest time possible to run the model. (all attempts resulted in CPU overload error)
I can run the model using 10ms time step. But simulink stopped the evaluation at 1ms.
I am wondering if there is any way to specify how many times xpcbench should try OR a starting sample time so that it could evaluate with more appropriate time step values ?
Thank you

답변 (1개)

Dimitri MANKOV
Dimitri MANKOV 2024년 11월 5일
Hi Howard,
That's a tough question to answer, especially for such an old MATLAB release... But perhaps you could use an alternative approach. I'm not sure whether it was already available in Simulink Real-Time in R2015b, but you could try running the execution profiler to estimate how much effective time is required for every task in your model/real-time application. This should provide you with a good guess of the lower step size limit that you could achieve with your model in its current configuration on your specific hardware.
I hope this is helpful!
Dimitri

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

태그

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by