Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
slref.pdf
Скачиваний:
39
Добавлен:
26.03.2015
Размер:
16.01 Mб
Скачать

10 Model Advisor Checks

Analyze model hierarchy for upgrade issues

Check for child models and guide you through upgrading a model hierarchy.

Description

This check identifies child models of this model, and offers to run the Upgrade Advisor upon each child model in turn. If you have a model hierarchy you need to check and update each child model. The Advisor provides tools to help with these tasks.

Results and Recommended Actions

 

Condition

Recommended Action

 

 

Child models found

Click Analyze Next Model

 

 

 

to close the current Upgrade

 

 

 

Advisor session, and open

 

 

 

Upgrade Advisor for the next

 

 

 

model in the hierarchy.

 

Tips

Best practice for upgrading a model hierarchy is to check and upgrade each model starting at the leaf end and working up to the root model.

When you click Analyze Next Model, the Upgrade Advisor opens the leaf model as far inside the hierarchy as it can find. Subsequent steps guide you through upgrading your hierarchy from leaf to root model.

When you open the Upgrade Advisor, the checks that are selected do not require compile time information and do not trigger an Update Diagram. Checks that trigger an Update Diagram are not selected to run by default, and are marked with ^. When you use the Upgrade Advisor on a hierarchy, keep clicking Analyze Next Model to move through this sequence of analysis:

1The Upgrade Advisor opens each model and library in turn, from leaf to root, and selects all non-compile checks. Run the checks, take any advised actions, then click Analyze Next Model to open the next model and continue.

10-72

Simulink® Checks

2When you reach the root end of the hierarchy, the Upgrade Advisor then opens each model again in the same order (but not libraries) and selects only the checks that require a model compile. Run the checks, take any advised actions, then click Analyze Next Model to open the next model. Continue until you reach the end of the hierarchy.

See Also

“Consult the Upgrade Advisor”.

“Model Upgrades”

10-73

10 Model Advisor Checks

Check and update masked blocks in library to use promoted parameters

Check for libraries that should be updated to use promoted parameters.

Description

This check searches libraries created before R2011b for masked blocks that should be updated to use promoted parameters. Since R2011b, if a block parameter is not promoted, its value in the linked block is locked to its value in the library block. This check excludes blocks of type Subsystem, Model reference, S-Function and M-S-Function.

Results and Recommended Actions

 

Condition

Recommended Action

 

 

Libraries that need to be updated are found

Click Update. Once the

 

 

 

libraries have been updated,

 

 

 

run the check again

 

See Also

“Consult the Upgrade Advisor”.

“Model Upgrades”

10-74

11

Performance Advisor

Checks

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]