Effacer les filtres
Effacer les filtres

How to use variables in a subsystem mask

3 vues (au cours des 30 derniers jours)
Dani Tormo
Dani Tormo le 17 Juin 2013
Commenté : Zoe Xiao le 2 Août 2017
Hi!
I am working on a subsystem mask that changes its outputs depending on a popup. The thing is that I have to know which was the previous popup item selected to do one change or another.
I am doing it by using one parameter of the mask. It works when it is shown in the mask ( show parameter checked), but when I hide it (I don't want to see this variable) it stop working properly.
Is there any way to use variables instead of parameters to do that?
Many thanks!
  8 commentaires
Dani Tormo
Dani Tormo le 4 Juil 2013
Is going to help me someone? I still having problems with the use of this parameter as a variable.
Many thanks!
Zoe Xiao
Zoe Xiao le 2 Août 2017
I tried your code in 2017a, and it worked fine if you deselect the 'visible' check box of the mask parameter.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by