Simscape 파일 배포
블록 다이어그램에 Simscape™ 파일 사용
텍스트 컴포넌트 파일을 사용자 지정 Simscape 블록으로 변환하여 블록 다이어그램에 배포합니다. Simscape Component 블록을 사용하여 Simscape 컴포넌트 파일을 사용자 모델의 블록으로 신속히 변환할 수 있습니다. 또한 Simscape 컴포넌트의 사용자 지정 블록 라이브러리를 빌드하여 조직 전체에 걸쳐 이러한 모델을 공유할 수 있습니다. 이 두 가지 방법에 대한 자세한 내용은 Generating Custom Blocks from Simscape Component Files 항목을 참조하십시오.
Simscape 블록
Simscape Component | Deploy Simscape language component as custom block in model diagram |
함수
ssc_build | Build custom library from collection of Simscape files |
ssc_mirror | Create protected mirror of library of Simscape files |
ssc_protect | Generate Simscape protected files from source files |
sl_postprocess | Make postprocessing customizations when building custom block library |
ssc_clean | Clean all derived files generated by library build process |
ssc_update | Update Simscape component files to use new syntax |
simscape.dependency.file | Check dependencies for single file |
simscape.dependency.lib | Check dependencies for library package |
simscape.dependency.model | Check dependencies for model |
subsystem2ssc | Convert subsystem containing Simscape blocks into equivalent Simscape file or files |
도움말 항목
사용자 지정 컴포넌트 배포의 기본 기법
- Generating Custom Blocks from Simscape Component Files
How to turn a textual component file into a Simscape block. - Selecting Component File Directly from Block
Quickly deploy a single component file. - Deploy a Component File in Block Diagram
This example shows how you can quickly transform a Simscape component file into a block in your model. - Switch Between Different Source Components
This example shows how you can try out several variants of a component in your model by pointing the Simscape Component block to different component files. - Prototype a Component and Get Instant Feedback
This example shows how you can interactively modify the component source and get instant feedback on the resulting block implementation.
다이어그램에서의 사용자 지정 블록 표시
- Customizing the Block Name and Appearance
How to customize the block name, names of parameters, variables, and ports, and the block icon. - Customize Block Display
This example shows a complete component file with annotation and the resulting library block and dialog box. - Use Advanced Techniques to Customize Block Display
This example shows how you can use block layout annotation and enumerations to improve usability of a custom block.
사용자 지정 블록 라이브러리
- Building Custom Block Libraries
Generate a custom block library from a package of Simscape component files. - Customizing the Library Name and Appearance
Package names must be valid MATLAB® identifiers. - Create a Custom Block Library
This example illustrates how you can convert a package of Simscape component files into a custom block library, containing sublibraries with customized names and appearance. - When to Rebuild a Custom Library
You need to rebuild the custom Simscape libraries: - Checking File and Model Dependencies
How to use Dependency Analyzer to analyze a model and determine its model dependencies.
사례 연구
- Case Study — Basic Custom Block Library
How to build your own library of custom blocks based on component files. - Case Study — Electrochemical Library
How to create a new custom domain and build a complete library of custom blocks based on that domain.