Open Simulink Code Inspector Advisor
slciadvisor('
opens a Simulink®
Code Inspector™ Advisor session for the specified model. The opened Advisor is equivalent to
Model Advisor preloaded with all Simulink Code Inspector compatibility checks. You can use
the Advisor to run all or individual compatibility checks on the model. This function
provides direct access to model compatibility checking which can streamline iterative
checking of a model.modelName
')
Create a temporary folder.
[tempDir, cgDir] = slcidemodir()
Load the example model slcidemo_roll_orig
into memory, save a copy of
the model, and rename it as slcidemo_roll
.
load_system('slcidemo_roll_orig') save_system('slcidemo_roll_orig', 'slcidemo_roll')
Open Simulink Code Inspector Advisor for the slcidemo_roll
model.
slciadvisor('slcidemo_roll')
In the Advisor window, select all compatibility checks, and run the selected checks on the model by clicking Run Selected Checks.
In the model window, on the Apps tab, select Code
Inspector. Use the Simulink Code Inspector dialog box, to configure and run the
compatibility checker. You can run the compatibility checker for a top model hierarchy by
clicking Check this model. You can also use the checkCompatibility
function to run compatibility checks.