Products & Services Solutions Academia Support User Community Company

Learn more about Simscape   

ssc_build - Build custom library from collection of Simscape files

Syntax

ssc_build package

Description

ssc_build package generates a custom Simscape library file, named package_lib.mdl, containing all the sublibraries and blocks generated from the Simscape files (either source or protected) located in the package and its subdirectories. Simscape protected files have higher precedence than the source files when you build a library. If both the protected and the source files are present in the package, and the source files are out of date, ssc_build will use the protected files to build the library, but you will get a warning.

The argument, package, must be a top-level package name.

The package must be located in a directory on the MATLAB path. The package_lib.mdl is automatically placed in the package parent directory. For more information, see Adding Custom Block Libraries Generated from Simscape Component Files.

If you run the ssc_build command from inside the package directory structure, you can omit the argument.

Examples

For example, your top-level package directory, where you store your Simscape files, is named +SimscapeCustomBlocks. To generate a custom block library, at the MATLAB Command prompt, type:

ssc_build SimscapeCustomBlocks;

This command generates a file called SimscapeCustomBlocks_lib.mdl in the parent directory of the top-level package (that is, in the same directory that contains your +SimscapeCustomBlocks package).

See Also

ssc_clean

ssc_mirror

ssc_protect

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS