Select the type of joint between a multibody system and the world with a variable from the workspace
조회 수: 1 (최근 30일)
이전 댓글 표시
In Simulink, using Simscape blocks, I have a multibody system that is joined to the world with a six degrees of freedom joint. My doubt is: How can I join the system with the world using two joints (6-DOF and a planar joint) and selecting with a workspace variable which joint is going to be active.
댓글 수: 0
답변 (1개)
Steve Miller
2021년 6월 8일
You add a Variant Subsystem to your model. Inside that Variant Subsystem, you put two subsystems where each subsystem contains the joint you wish to conditionally enable. Follow the steps from the documentation to specify objects in the Workspace to control which is active.
Another option is to use Comment Out, but this will require a MATLAB function to look at your workspace variable and comment out the block you do not want.
--Steve
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Applications에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!