And 260068845@qq.com, to answer your question here
Huang Zewu wrote:
Hello Constantin Razvan Chivu,
Due to the confidentiality of the project, the code was modified and the actual code was many times larger than this project. I wonder if the amount of code has an impact?Thanks!!!
Yes, the amount of code can impact the application. The way we run the application is the following:
- we get the fixed discrete step from the Simulink model (this is user-configurable)
- we then configure a timer to trigger the step function (main loop of the application) at the specified time
So if you configure a very low fixed step and have a big application, it will not work as expected (e.g.: if you have code in the main loop that requires X us, and you've set the fixed step to something less than X us). But other than that, it shouldn't impact the application. Can you profile the code from the main loop and see if it's greater than the fixed step you've set in your model?
Kind regards,
Razvan.