McSCert / Simulink-Design-Documenter

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

Not compatible with referenced subsystems #2

Open Mikitolakatunga opened 2 years ago

Mikitolakatunga commented 2 years ago

It outputs an error when generating documentation for a model containgn referenced subsystems

for variable = requiredVariables assert(logical(exist(variable{1},'var')), 'Report generation failed in %s.\n%s not defined.', filename, variable{1}); end

ekasilicon14 commented 2 years ago

Working on bug fix. It seems that the issue is due to one of the files in utilities, Simulink-Utility\DataflowTracing\inoutblock2subport.m, not working. 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.

While the bug fix is going online, try running the documenter but make sure the pwd is the same as the Simulink model path and also re-open the simulink model once the pwd and model directory match.