Hello,
I'm currently working on a model of enormous size. Therefore, the CPU load on my real time target can be overloaded.
I'm looking to optimise my model. I've selected numerous optimisation option in the hardware settings menu . Hence, I'm looking for more fine optimisation means.
My model has a great quantity of constants. Many of these constants are modified through specific "Edit" blocks (Dashboard category in Simulink library). These edit blocks are contained in a dashboard on the top level of my model.
As a last information, the constants have a sample time equal to the model's (Te = 1e-4s)
My questions are,
> what is the influence on a model of the "Edit" blocks? For example, does it double the calculation load of a referenced constant?
> what is the influence of sample time of constants in simulink? may they have a considerable impact of a microcontroller's performance?
The solutions I consider are
> removing the majority of the "Edit" blocks (greatly impacting the ergonomy of the interface).
> putting the constants at is 1s sample rate.
Thank you for your time
Best regards,