How to create a new .ssc-File for Simscape Custom Component?
26 views (last 30 days)
Show older comments
MathWorks Support Team
on 5 Sep 2019
Edited: MathWorks Support Team
on 31 Jan 2025
How to create a new .ssc-File for Simscape Custom Component?
I do not find a new file button for .ssc-files.
Accepted Answer
MathWorks Support Team
on 17 Jan 2025
Edited: MathWorks Support Team
on 31 Jan 2025
In R2019b and later releases, the function 'sscnewfile' can be used to create new '.ssc' files for custom Simscape components. To find more information on 'sscnewfile' in MATLAB R2019b, execute the following command in the command window to view the release-specific documentation:
>> web(fullfile(docroot, 'physmod/simscape/ref/sscnewfile.html'))
In R2019a and earlier, there are two possibilities:1. Copy an existing ssc-file and change its content to customize an existing component.2. Create a new script in the MATLAB Editor, click "Save as", and manually change the file name to end with '.ssc'.
If you need more information about the Simscape Language, please refer to the documentation listed below. Run the commands in the MATLAB R2019a command window to access release-specific documentation.
What Is the Simscape Language?
>> web(fullfile(docroot, 'physmod/simscape/lang/what-is-the-simscape-language.html'))
Simscape File Types and Structure
>> web(fullfile(docroot, 'physmod/simscape/lang/about-simscape-files.html'))
Creating Custom Components
>> web(fullfile(docroot, 'physmod/simscape/lang/creating-custom-components.html'))
Please follow the link below to search for the required information regarding the current release:
0 Comments
More Answers (0)
See Also
Categories
Find more on Creating Custom Components and Libraries in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!