Can't pass parameters from a mask to a subsystem
Mostrar comentarios más antiguos
I've got a subsystem model with a Constant block whose constant value is "m".
I masked the subsystem and on the parameters tab I added a line with the following items:
#: 1, Prompt: multiplier, Variable: m, Type: edit, ...
In my top model I added a reference to the masked subsystem model. Within the top model I double-clicked on the masked model and entered a value for "m" on the "Model Reference (mask)" dialog.
But when I run the model, it tells me that m is undefined in the subsystem model. I tried creating a new variable called m in the Matlab workspace and re-running the model. That worked. So I can pass a parameter value from the Matlab workspace to my subsystem model but not from the subsystem mask. What am I doing wrong with the mask?
Thanks in advance for helping. Matt
2 comentarios
Arnaud Miege
el 26 de Abr. de 2011
It should work, so you must be doing something wrong. Could you upload your model to a filesharing site?
Matt Garrett
el 26 de Abr. de 2011
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Component-Based Modeling en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
