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