Borrar filtros
Borrar filtros

open several Simulink models and interakt with the opend model

1 visualización (últimos 30 días)
Hi, i can select with radiobuttons several Simulink models.
function Bone_SelectionChangeFcn(hObject,eventdata, handles)
if hObject == handles.Skull
load_system('Skull')
open_system('Skull')
else if hObject == handles.Femur
load_system('Femur')
open_system('Femur')
end
end
after this i wanna replace with slider values of constant in the opend model. But i dont know how can i interact only with the opend model. Cau u guys help me pls?
THX

Respuesta aceptada

Andreas Goser
Andreas Goser el 29 de Jul. de 2013
Editada: Andreas Goser el 29 de Jul. de 2013
I suppose you will be close to your solution once having a look at the commands
bdroot
gcs
gcb

Más respuestas (1)

sia
sia el 29 de Jul. de 2013
Hi, thanks for the answer. But i solved it.
Now i wanna connect 2 simulink models to each other. such that, they will exchange value with each other.
Do you know any way to do this. But i dont want it as subSystem.
THX
  5 comentarios
sia
sia el 30 de Jul. de 2013
did i understand it right? can i e.g. create 2 models and load_system('') these then add one of the into the other as a subSystem??? It is possible???
Andreas Goser
Andreas Goser el 31 de Jul. de 2013
This is indeed possible, but without background information of your application, I can't say whether it makes sense or not. I can just say that most user don't do this at all, but develop one larger model. In case you want to modify parts of this larger model easy, please have a look at variants.

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink Functions en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by