You deploy the textual component files in block diagrams by converting them into custom Simscape blocks. You can quickly transform a Simscape component file into a block in your model by using the Simscape Component block. You can also build custom block libraries of your Simscape components, enabling you to share these models across your organization. For more information on these two methods, see Generating Custom Blocks from Simscape Component Files.
|Simscape Component||Deploy Simscape language component as custom block in model diagram|
|Build custom library from collection of Simscape files|
|Create protected mirror of library of Simscape files|
|Generate Simscape protected files from source files|
|Make postprocessing customizations when building custom block library|
|Clean all derived files generated by library build process|
|Update Simscape component files to use new syntax|
|Check dependencies for single file|
|Check dependencies for library package|
|Check dependencies for model|
|Convert subsystem containing Simscape blocks into equivalent Simscape file or files|
This example shows how you can quickly transform a Simscape component file into a block in your model.
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.
This example shows how you can interactively modify the component source and get instant feedback on the resulting block implementation.
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.
This example shows a complete component file with annotation and the resulting library block and dialog box.
This example shows how you can use block layout annotation and enumerations to improve usability of a custom block.
How to build your own library of custom blocks based on component files.
How to create a new custom domain and build a complete library of custom blocks based on that domain.
How to turn a textual component file into a Simscape block.
Quickly deploy a single component file.
Generate a custom block library from a package of Simscape component files.
You need to rebuild the custom Simscape libraries:
Package names must be valid MATLAB® identifiers.
How to customize the block name, names of parameters, variables, and ports, and the block icon.
How to use Dependency Analyzer to analyze a model and determine its model dependencies.