referenced model dynamic path option?
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (3)
Sulaymon Eshkabilov
am 10 Mai 2019
0 Stimmen
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
am 10 Mai 2019
0 Stimmen
Berkin Birol
am 14 Mai 2019
0 Stimmen
Kategorien
Mehr zu Using MATLAB Projects in Simulink finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!