- Open the Simulink model that contains your custom SimScape library.
- From the Simulink menu, go to Simulation -> Model Configuration Parameters.
- In the Model Configuration Parameters dialog box, go to the "Code Generation" section.
- Set the "System target file" to "simscape.tlc".
- Set the "Target selection" to "Create a standalone executable".
- Set the "Generate code only" option to "on".
- Click "Apply" to save the changes.
- From the MATLAB command line, run the command rtwbuild('your_model_name') where your_model_name is the name of your Simulink model.
- This will generate a MATLAB script file named your_model_name_rtwbuild.m in the current working directory. This script contains the ssc_build command that was used to build the custom SimScape library for your model.
is it possible to find the file containing the 'ssc_build' command that builds the engine cooling system library?
3 ビュー (過去 30 日間)
古いコメントを表示
Hi, I am working with the simscape custom blocks model: Engine cooling system. I would like to know if it is possible to find the file containing the 'ssc_build' command that builds the model library.
So far I have found the model, the library and the other components and domains that make up the system. But I need that last file. It is a .m file
Most of the files are in C:\Program Files\MATLAB\R2022b\toolbox\physmod\simscape\simscapedemos
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1356693/image.png)
0 件のコメント
回答 (1 件)
Atharva
2023 年 4 月 26 日
Hey Paola,
The ssc_build command is used to build the custom Simulink library for your SimScape model. Typically, this command is run from the MATLAB command line, and the corresponding MATLAB script is not stored as a separate file.
However, you can generate a MATLAB script that contains the ssc_build command by following these steps:
You can then modify this script file as needed to customize the build process or automate it in your workflow.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Foundation and Custom Domains についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!