use xpcbench to bench a user model using simulink real-time 2015b
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
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
0 Kommentare
Siehe auch
Kategorien
Mehr zu Target Computer Setup finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!