Effacer les filtres
Effacer les filtres

is it possible to find the file containing the 'ssc_build' command that builds the engine cooling system library?

3 vues (au cours des 30 derniers jours)
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

Réponses (1)

Atharva
Atharva le 26 Avr 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:
  1. Open the Simulink model that contains your custom SimScape library.
  2. From the Simulink menu, go to Simulation -> Model Configuration Parameters.
  3. In the Model Configuration Parameters dialog box, go to the "Code Generation" section.
  4. Set the "System target file" to "simscape.tlc".
  5. Set the "Target selection" to "Create a standalone executable".
  6. Set the "Generate code only" option to "on".
  7. Click "Apply" to save the changes.
  8. From the MATLAB command line, run the command rtwbuild('your_model_name') where your_model_name is the name of your Simulink model.
  9. 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.
You can then modify this script file as needed to customize the build process or automate it in your workflow.

Catégories

En savoir plus sur Foundation and Custom Domains dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by