Utilities
Advanced functions for manipulating and querying models, charts, and elements
directly
These utility functions enable advanced users to manipulate and query Simulink models and Stateflow charts and elements of those models and charts.
Functions
Sort Utilities
slreportgen.utils.sortSystems | Sort Simulink and Stateflow systems |
slreportgen.utils.sortObjects | Sort Simulink and Stateflow objects |
slreportgen.utils.sortBlocks | Sort Simulink and Stateflow blocks |
Model Compilation
slreportgen.utils.compileModel | Compile model |
slreportgen.utils.uncompileModel | Uncompile model |
slreportgen.utils.isModelCompiled | Check if model is compiled |
Block and Object Type Verification
slreportgen.utils.hasDiagram | Check if object has diagram |
slreportgen.utils.isBusSelector | Check if Bus Selector block |
slreportgen.utils.isDocBlock | Check if DocBlock |
slreportgen.utils.isLookupTable | Check if lookup table block |
slreportgen.utils.isMATLABFunction | Check if MATLAB function block or object |
slreportgen.utils.isModel | Check if object is model |
slreportgen.utils.isModelReferenceBlock | Check if object is Model block |
slreportgen.utils.isStateTransitionTable | Check if object is state transition table |
slreportgen.utils.isStateTransitionTableBlock | Check if object is Transition Table block |
slreportgen.utils.isTestSequence | Check if Test Sequence block or object |
slreportgen.utils.isTruthTable | Check if object is Truth Table |
Model Loading
slreportgen.utils.isModelLoaded | Check if model is loaded |
slreportgen.utils.loadAllSystems | Load all systems |
Paths, Handles, and IDs
slreportgen.utils.getModelHandle | Get Simulink model |
slreportgen.utils.getSlSfHandle | Get Simulink handle or Stateflow object |
slreportgen.utils.block2chart | Get Stateflow chart object from containing block |
slreportgen.utils.getObjectID | Generate link target ID for Simulink or Stateflow object |
slreportgen.utils.isSID | Check if name is Simulink Identifier (SID) string |
slreportgen.utils.isValidSlSystem | Check if system is valid Simulink system |
slreportgen.utils.pathJoin | Combine two diagram path parts |
slreportgen.utils.pathParts | Split diagram path into parent and diagram parts |
slreportgen.utils.pathSplit | Split diagram path into array of diagram parts |
Model Element Details
slreportgen.utils.getCurrentEditorView | Get current editor view area |
slreportgen.utils.getDisplayIcon | Get Simulink or Stateflow icon file name |
slreportgen.utils.HierarchyNumber | Generate number that represents subsystem position in model hierarchy |
slreportgen.utils.traceSignal | Trace signal to source or destination |
slreportgen.utils.getResolvedParamValue | Evaluate parameter value expression |
slreportgen.utils.isMaskedSystem | Check if system is masked subsystem block |
slreportgen.utils.isCommented | Check if object is commented out |
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)