referenced model dynamic path option?
Mostrar comentarios más antiguos
Hi all,
I have a question about referenced models. I use them as components, repetitive function blocks. But I have a path issue. I also use svn and version my work.
For example I have model and referenced models in trunk.
- ...\trunk}model.slx
- ..\trunk\referencedModel.slx.
Obviously model used referenced model with path ..\trunk\referencedModel.slx. My problem starts here, if I tag or move model.slx to an another folder, model keeps looking for the referenced model in the ..\trunk\referencedModel.slx (but the model.slx is located at for ex ..tags/v1.0/model.slx. How can I make this path dynamic, for example look into the same folder which model.slx locates. I am sure that there is a easy way which I don't know, otherwise how can big projects can be managed? :)
Thanks in advance.
Respuesta aceptada
Más respuestas (3)
Sulaymon Eshkabilov
el 10 de Mayo de 2019
0 votos
Maybe set_param() would be an option in this case to link the model and ref. models: https://www.mathworks.com/help/simulink/ug/control-linked-block-status-programmatically.html
Berkin Birol
el 10 de Mayo de 2019
0 votos
Berkin Birol
el 14 de Mayo de 2019
0 votos
Categorías
Más información sobre Using MATLAB Projects in Simulink 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!