Programmatically refresh a Model block in a parent model that has the Port and parameter mismatch configuration parameter set to error.
Load the example model, which contains two Model blocks that are out of date with the model they reference. The number of input and output ports in the referenced model has increased from one to two.
load_system('RefreshModelBlockModel');
Warning: Ports and parameters of Model block 'RefreshModelBlockModel/Model1' do not reflect changes in referenced model 'RefreshModelBlockMdlRef'. Revert the changes to the referenced model.
Warning: Number of input ports must match between Model block 'RefreshModelBlockModel/Model1' (1) and referenced model 'RefreshModelBlockMdlRef' (2).
Warning: Ports and parameters of Model block 'RefreshModelBlockModel/Model' do not reflect changes in referenced model 'RefreshModelBlockMdlRef'. Revert the changes to the referenced model.
Warning: Number of input ports must match between Model block 'RefreshModelBlockModel/Model' (1) and referenced model 'RefreshModelBlockMdlRef' (2).