McSCert / Simulink-Design-Documenter

Generates Software Design Descriptions of Simulink models
BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

Part for fix for "Not compatible with referenced subsystems #2" bug #3

Open yansonghu-lele opened 2 years ago

yansonghu-lele commented 2 years ago

Added code to switch pwd to path of simulink model at start of GenSDD.m script.

Bug fix also requires change to code in the Simulink-Utilities sub project.

Suspect it is due to a Matlab bug where changing the pwd from the Simulink model's directory causes find_system() to return different systems compared to if the pwd is in the model's directory. This applies to a file in the utilities folder at the path Simulink-Utility\DataflowTracing\inoutblock2subport.m