Main Content

Simscape File Deployment

Use Simscape™ files in block diagrams

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 Blocks

Simscape ComponentDeploy Simscape language component as custom block in model diagram

Functions

sscbuildBuild custom library from collection of Simscape files (Since R2024b)
ssc_build(To be removed) Build custom library from collection of Simscape files
sscmirrorCreate protected mirror of library of Simscape files (Since R2024b)
ssc_mirror(To be removed) Create protected mirror of library of Simscape files
sscprotectGenerate Simscape protected files from source files (Since R2024b)
ssc_protect(To be removed) Generate Simscape protected files from source files
sl_postprocessMake postprocessing customizations when building custom block library
ssccleanClean all derived files generated by library build process (Since R2024b)
ssc_clean(To be removed) Clean 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

Topics

Basic Techniques of Custom Component Deployment

Custom Block Display in Diagrams

Custom Block Libraries

Case Studies