Matlab migration from 2019b to 2021b

6 次查看(过去 30 天)
Hello Team,
Currently i am doing the model migration from 2019 to 2021.
I have noted , while generating the code the code optimization or code generated in such a way that for the goto SLblock of model or the signal used locally inside subsystem the code is not generated and also for the nested loop the code is generated proper way.
I just want to explore more , when we migrate the matlab version of the model what are all the necessary parameters needs to check both in simulink model to code generation.
Can someone help me to explore more on this migration topic.
Thank u

回答(1 个)

Githin George
Githin George 2024-10-4
Hello Poornachandran,
Migrating Simulink models to a newer version involves several considerations. While there aren't any defined rules for this process, you might find it helpful to follow some guidelines.
Keep in mind that code generation might differ between releases, such as changes in function names or comments. However, the outputs from the generated code should remain consistent across different releases. Your focus should be on ensuring that there are no functional changes in the output.
To start troubleshooting, you can run the Upgrade Advisor and Model Advisor checks:
If functional differences persist, try verifying the simulation outputs. The SIL/PIL Manager can also help you compare simulation results with those from the generated code. For more details, refer to the following documentation:
I hope this helps.

类别

Help CenterFile Exchange 中查找有关 Modeling 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by