referenced model dynamic path option?
Show older comments
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.
Accepted Answer
More Answers (3)
Sulaymon Eshkabilov
on 10 May 2019
0 votes
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
on 10 May 2019
0 votes
Berkin Birol
on 14 May 2019
0 votes
Categories
Find more on Using MATLAB Projects in Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!