- 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?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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
0 comentarios
Respuestas (1)
Atharva
el 26 de Abr. de 2023
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 comentarios
Ver también
Categorías
Más información sobre Creating Custom Components and Libraries en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!