- Add a ModelLoop component to your setup file.
- Enter the name of your model in the component's Model Name field.
- Append an Evaluate MATLAB Expression component to your ModelLoop (see attached images).
- Enter the following expression in the eval component: systems = find_system(gcs, 'SearchDepth', n, 'BlockType', 'SubSystem'); replacing n with the search depth you desired, e.g., 3. This expression creates a variable named systems in the MATLAB work space and sets the variable to a list of the top-n-level subsystems in your model.
- Append a SystemLoop component to the ModelLoop component below the eval component.
- Select the Custom - use system item from the Loop on Systems list.
- Enter %<systems> in the system list. This expression is evaluated at report generation time to create a list of the top-level subsystems in your model.
- Append components to the SystemLoop to report on the top-n-level systems in your model.
how to limit search depth on model for report generator
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nathan
am 28 Mär. 2017
Beantwortet: Paul Kinnucan
am 29 Mär. 2017
Is there a way to limit how deep the report generator will look when creating a report of a single simulink model. I want to get a report on just the top 2-3 layers (my architecture layers) of subsystems, but the standard option digs down to the lowest level which creates a massive report that is too verbose.
0 Kommentare
Akzeptierte Antwort
Paul Kinnucan
am 29 Mär. 2017
To report on the top-n-level subsystems in your model:
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Create Model Web Views 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!