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

1 Ansicht (letzte 30 Tage)
Howard Loewen
Howard Loewen am 31 Okt. 2024
Beantwortet: Dimitri MANKOV am 5 Nov. 2024
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

Antworten (1)

Dimitri MANKOV
Dimitri MANKOV am 5 Nov. 2024
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

Tags

Produkte


Version

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by