Simulink: Subsystem vs Model Referencing

5 Ansichten (letzte 30 Tage)
Oscar Sandoval
Oscar Sandoval am 17 Jun. 2014
Beantwortet: Oscar Sandoval am 9 Jul. 2014
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,

Antworten (2)

Maximilian
Maximilian am 3 Jul. 2014
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 am 9 Jul. 2014
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?

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by