open several Simulink models and interakt with the opend model
Mostrar comentarios más antiguos
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
Más respuestas (1)
sia
el 29 de Jul. de 2013
0 votos
5 comentarios
Andreas Goser
el 30 de Jul. de 2013
You could control this through MATLAB using SIM commands, but in fact it seems to be smarter to me to merge your models into one instead of connecting them. Please have a look at the concept of subsystems, especially "model referencing".
sia
el 30 de Jul. de 2013
Andreas Goser
el 30 de Jul. de 2013
Editada: Andreas Goser
el 30 de Jul. de 2013
I was thinking of interactive copy/paste of the respective subsystem, but in cases there is a need to do it programmatically, you can use ADD_BLOCK
sia
el 30 de Jul. de 2013
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.
Categorías
Más información sobre Programmatic Model Editing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!