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

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 日

0 投票

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

カテゴリ

ヘルプ センター および File Exchange で Multicore Processor Targets についてさらに検索

製品

リリース

R2015b

タグ

質問済み:

2024 年 10 月 31 日

回答済み:

2024 年 11 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by