use xpcbench to bench a user model using simulink real-time 2015b
16 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Dimitri MANKOV
2024-11-5,17:56
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
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Target Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!