ssc_build doesnt recognize .slx parts?

4 Ansichten (letzte 30 Tage)
Niklas Anthony
Niklas Anthony am 8 Jul. 2015
Beantwortet: Sabin am 12 Aug. 2025
So I made a few basic shapes using solids in simscape, the files are saved as *.slx. I want to be able to use these shapes in future models, like building blocks, so I think a library is best, the only problem is I cant generate a library using ssc_build, as it only recognizes .m and .ssc files.
My current directory is in */Documents/MATLAB/testsat/ if that matters. I made a folder called +package in that directory, and put all my shapes/slx parts in there, when I run ssc_build.

Antworten (1)

Sabin
Sabin am 12 Aug. 2025
The sscbuild function generates a Simulink .slx library file. The slx file cannot be provided as input to the function. We can add ssc, m, and svg/jpg/bmp/png (for customizeing the icon) files in the +folder.
Check out more about building custom simscape component files:

Kategorien

Mehr zu Simulink Environment Customization finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by