Products & Services Solutions Academia Support User Community Company

Learn more about Simulink Design Verifier   

sldvblockreplacement - Replace model blocks for analysis

Syntax

[status, newmodel] = sldvblockreplacement(model)
[status, newmodel] = sldvblockreplacement(model, options)
[status, newmodel] = sldvblockreplacement(model, options, showUI)

Description

[status, newmodel] = sldvblockreplacement(model) copies model and replaces specified model blocks and other model components for a Simulink Design Verifier analysis. sldvblockreplacement replaces the blocks of the model according to the block-replacement rules in the model configuration settings. sldvblockreplacement returns a handle to the new model in newmodel. If the operation is successful, sldvblockreplacement returns a status of 1. Otherwise, it returns 0.

[status, newmodel] = sldvblockreplacement(model, options) replaces the blocks of model according to the block replacement rules specified in the sldvoptions object options, and returns a handle to the new model in newmodel.

[status, newmodel] = sldvblockreplacement(model, options, showUI) performs the same tasks as sldvblockreplacement(model, options). If showUI is true, errors appear in the Simulation Diagnostics Viewer. Otherwise, errors appear at the MATLAB command line.

Examples

Replace the blocks in sldvdemo_blockreplacement_unsupportedblocks using the block-replacement rules specified in opts:

opts = sldvoptions;
opts.BlockReplacement = 'on'
opts.BlockReplacementRulesList = ...
'<FactoryDefaultRules>, custom_rule_switch';
[status, newmodel] = sldvblockreplacement(...
     'sldvdemo_blockreplacement_unsupportedblocks', opts);

See Also

sldvoptions

Tutorials

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS