Main Content

このページの翻訳は最新ではありません。ここをクリックして、英語の最新版を参照してください。

Simscape ファイルの展開

ブロック線図での Simscape™ ファイルの使用

テキストのコンポーネント ファイルをカスタム Simscape ブロックに変換して、ブロック線図に配置します。Simscape Component ブロックを使用すると、Simscape コンポーネント ファイルをモデルのブロックにすばやく変換できます。また、Simscape コンポーネントのカスタム ブロック ライブラリを作成すると、こうしたモデルを組織全体で共有できるようになります。これらの 2 つの手法に関する詳細については、Generating Custom Blocks from Simscape Component Filesを参照してください。

Simscape ブロック

Simscape ComponentDeploy Simscape language component as custom block in model diagram

関数

ssc_buildBuild custom library from collection of Simscape files
ssc_mirrorCreate protected mirror of library of Simscape files
ssc_protectGenerate Simscape protected files from source files
sl_postprocessMake postprocessing customizations when building custom block library
ssc_cleanClean all derived files generated by library build process
ssc_updateUpdate Simscape component files to use new syntax
simscape.dependency.fileCheck dependencies for single file
simscape.dependency.libCheck dependencies for library package
simscape.dependency.modelCheck dependencies for model
subsystem2sscConvert subsystem containing Simscape blocks into equivalent Simscape file or files

トピック

カスタム コンポーネントの展開の基本的な手法

ブロック線図でのカスタム ブロックの表示

  • 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. The image file, custom_spring.jpg, is located in the same folder as the component file. This example is an illustration of basic techniques described in Customizing the Block Name and Appearance.
  • 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. The top-level package always generates a library model with the name package_name_lib. However, library configuration files let you provide descriptive library names and specify other customizations for sublibraries, generated from subdirectories in the package hierarchy.
  • 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. It summarizes the techniques described in Organizing Your Simscape Files, Converting Your Simscape Files, and Customizing the Library Name 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.

ケース スタディ