Build custom library from collection of Simscape files
a custom Simscape™ library file, named
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,
use the protected files to build the library, but you will get a warning.
must be a top-level package name.
The package directory name begins with a leading
The package must be located in a directory on the MATLAB® path.
placed in the package parent directory. For more information, see Building Custom Block Libraries from Simscape Component
If you run the
ssc_build command from inside
the package directory structure, you can omit the argument.
For example, your top-level package directory, where you store
your Simscape files, is named
To generate a custom block library, at the MATLAB Command prompt,
This command generates a Simulink® model file called
the parent directory of the top-level package (that is, in the same
directory that contains your