Simulink: Subsystem vs Model Referencing

5 ビュー (過去 30 日間)
Oscar Sandoval
Oscar Sandoval 2014 年 6 月 17 日
回答済み: Oscar Sandoval 2014 年 7 月 9 日
Hello, I am creating a system in simulink similar to a Stewart Platform. In my model I have created a 'leg' subsystem, which is then 'initialized' three times with different initialization parameters. I am wondering whether, given my desire to create 3 unique and independent instances of this 'leg' subsystem, creating a 'Referenced Model' is more suited to my needs. Given the third bullet and the 'component reuse' factor of the link below, I am beginning to think that Model Referencing is the correct way to go. http://www.mathworks.com/help/simulink/ug/model-architecture-guidelines.html
Thank you,

回答 (2 件)

Maximilian
Maximilian 2014 年 7 月 3 日
If you will not be changing the content of the blocks (other than the parameters) and do not need to perform unit testing it may be overkill to use reference models. If you will be doing these things a reference model would be helpful.

Oscar Sandoval
Oscar Sandoval 2014 年 7 月 9 日
Maximilian, I hope to do perform unit testing for overall robustness of the design, but I do not expect to be making changes to the model frequently, instances in which I would revise the model would be should I discover that my approach in modeling is incorrect or I find a more optimal solution. I hope to initialize the model three times with different parameters each instance, i.e. leg 1 = length1, m1, I1; leg 2 = length2, m2, I2; etc..., does this affect which I should be using?

製品

Community Treasure Hunt

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

Start Hunting!

Translated by