Why is Simulink Accelerator Regenerating Code?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have a model which has variables stored in the model workspace.
I frequently assign new values to certain variables in the model workspace and the accelerator model is rebuilt.
Based on the process described in "Determining Why Simulink Accelerator Is Regenerating Code" I went through the following steps:
- I run [cs1,csdet1]=Simulink.BlockDiagram.getChecksum(model); on the initial model
- Assign new value to a variable
- Run [cs2,csdet2]=Simulink.BlockDiagram.getChecksum(model); on the final model
- Run checksum comparison, I get "Checksums are different"
- Run the comparison to understand the sources of checksum differences, I get "Contents checksums are the same and Interface checksums are the same"
I've attached the outputs of the checksum comparison.
Any ideas?
Thanks,
Alex.
0 Kommentare
Antworten (1)
Akshat Dalal
am 15 Apr. 2025
Hi Alex,
The model should ideally not rebuild if the checksums are same before and after changing the model. It might be that the compiled state checksums might be different. Could you please compare the compiled model checksums just to be sure? The process for getting the compiled checksum is outlined in the following documenation: https://www.mathworks.com/help/simulink/slref/simulink.blockdiagram.getchecksum.html
Also, the issue might be related to the rebuild settings for your model. Although this is quite unlikely, could you please also verify the rebuild settings for your models as outlined in the following documentation: https://www.mathworks.com/help/simulink/gui/rebuild.html
I hope these steps help in identifying the root cause of the issue.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Simulink Environment Customization 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!