Products & Services Solutions Academia Support User Community Company

Learn more about Simulink Design Verifier   

sldvextract - Extract subsystem contents into new model for analysis

Syntax

[status, newmodel] = sldvextract(block)
[status, newmodel] = sldvextract(block, showModel)
[status, newmodel] = sldvextract(block, showModel, showUI)
[status, newmodel] = sldvextract(block, showModel, showUI, isvalid)

Description

[status, newmodel] = sldvextract(block) extracts the contents of the Atomic Subsystem block block and creates a model for the Simulink Design Verifier software to analyze. The sldvextract function returns the handle of the new model in newmodel. sldvextract uses the subsystem name for the model name, appending a numeral to the model name if that model name already exists. If the operation is successful, sldvextract returns a status of 1. Otherwise, it returns 0.

[status, newmodel] = sldvextract(block, showModel) opens the extracted model if you set showModel to true.

[status, newmodel] = sldvextract(block, showModel, showUI) performs the same tasks as sldvextract(block, showModel). If you set showUI to true, the output in the Simulation Diagnostics Viewer; otherwise, output appears in the MATLAB command window.

[status, newmodel] = sldvextract(block, showModel, showUI, isvalid) performs the same tasks as sldvextract(block, showModel, showUI). The isvalid argument is for internal use.

Examples

Extract the Atomic Subsystem block, Bus Counter, from the sldemo_mdlref_conversion model and copy it into a new model:

open_system('sldemo_mdlref_conversion');
[status, newmodel] = sldvextract('sldemo_mdlref_conversion/Bus Counter',...
    true);
  


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