how to rename the calibration parameter in a simulink model

3 vues (au cours des 30 derniers jours)
wenchao zhang
wenchao zhang le 6 Sep 2023
Commenté : wenchao zhang le 7 Sep 2023
now i want find all the calibration parameter which contains(for example 'xxx'), and rename this calibration parameter by replace xxx with yyy, expect(pedc_b_xxxMotEna ->pedc_b_yyyMotEna)

Réponse acceptée

kei hin
kei hin le 6 Sep 2023
Modifié(e) : kei hin le 6 Sep 2023
use find_system() to get all constant block's handle, then use get_param(blockhandle,'value') to get the value in constant, and then use set_param(blockhandle,'value','yyy') after check the value include 'xxx'.

Plus de réponses (0)

Catégories

En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange

Produits


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by