ssc_build doesnt recognize .slx parts?

조회 수: 3 (최근 30일)
Niklas Anthony
Niklas Anthony 2015년 7월 8일
답변: Sabin 2025년 8월 12일
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.

답변 (1개)

Sabin
Sabin 2025년 8월 12일
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:

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by