Effacer les filtres
Effacer les filtres

How to programmitcally edit the "Goto Tag" in "From" block in simulink

2 vues (au cours des 30 derniers jours)
Reihaneh Jahedan
Reihaneh Jahedan le 28 Août 2023
Commenté : Reihaneh Jahedan le 31 Août 2023
I have a simulink model with multiple Goto blocks. I also have a "From" block in my model that corresponds to one of these "GoTo" blocks, How can I change its "Goto Tag" and "Goto Source"? I want it to get coreesponded to another "GoTo" block.

Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 28 Août 2023
get_param(PathToTheBlock,'GotoTag');
set_param(PathToTheBlock,'GotoTag','B')

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Environment Customization 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