How do I update Simulink model-wide parameters from the command line?

8 vues (au cours des 30 derniers jours)
I would like to know if there is any way to access the Real-Time Workshop and Optimization parameters from the command line.

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 27 Juin 2009
As of Simulink 5.1 (R13SP1), you can use the USET_PARAM and UGET_PARAM to change model-wide parameters. For example, to change the "RTW system target file" try:
uset_param(gcs, 'SystemTargetFile', new_target_file)
In Simulink 6.0 (R14), however, the utility functions UGET_PARAM and USET_PARAM are being obsoleted. For Simulink 6.0 (R14) and later releases, you should use GET_PARAM and SET_PARAM instead as explained in the following documentation:
web([docroot,'/toolbox/ecoder/ecoder_ug/f10575.html'])

Plus de réponses (0)

Catégories

En savoir plus sur Manual Performance Optimization dans Help Center et File Exchange

Produits


Version

Aucune version saisie pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by