Implementing model references with SimMechanics and SimHydraulics

조회 수: 1 (최근 30일)
Maximilian
Maximilian 2013년 11월 25일
댓글: Jesus Quesada 2019년 2월 11일
Hello
Is there a way to use Simulink model referencing to reference a SimMechanics model that contains Body CS ports and general purpose SimMechanics ports? I am working on a large scale model that contains numerous SimMechanics and SimHydraulic systems and I would like to componentize the system as much as possible.
Thanks!

채택된 답변

Guy Rouleau
Guy Rouleau 2013년 11월 27일
Maximilian, componentizing is always a good idea!
With Simscape and SimMechanics, the physical network cannot cross atomic boundaries (this includes model reference).
In that case, you have only one option, Libraries:
Create one library file per component. That way they can be developed by individual developers and reused in many places.
  댓글 수: 1
Jesus Quesada
Jesus Quesada 2019년 2월 11일
Hi
Do libraries in simscape support parameterized variants? I am trying for some of these components to be different variants depending on the instance (reusable libraries).
I know this is easy to do with model reference as each instance has its own "workspace".
Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Zack Peters
Zack Peters 2013년 11월 25일
Hi Maximilian,
Currently there is no way to pass the port across a model boundary. If you are just looking to componentize your model, is there a reason that a subsystem would not work for your situation? I would recommend using subsystems if you are trying to componentize your model in the physical domain.
~Zack

Maximilian
Maximilian 2013년 11월 25일
Thanks for the prompt reply. I currently have subsystems implemented, however it would be preferred if there was a way to independently develop and perform unit tests on each component while maintaining their integrity in the overall system model. Copying and pasting components into separate files to either change or test them has proven to be time consuming and produce numerous mistakes.
Do you have any suggestions on other methods I could use to set up my model this way?
Thanks again!

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by