How to Dynamically change Model Workspace variables for changing block parameters

Hi everyone,
I want to change Rigid Transform block parameters dynamically during working simulink. And I see, I have to create Model Workspace variables and I have to change them dynamically. During simulation, the Rigid Transform block parameter will change (for example its rotation) according to simulink matlab function output results. Is it possible? Or is there any limitation of simulink?

답변 (1개)

Paul
Paul 2023년 1월 8일
Assuming the Question is in regards to this block, Rigid Transform, it seems that dynamically changing the parameters of the block is counter to its intent. What are you really trying to do? Perhaps there's a more natural way to do it in Simscape Multibody.
It almost sounds like you want to specify a type of Joint between two bodies and then specify the relative motion at the joint. Perhaps start from this doc page to review the various Joint options and the links therefrom for how to specify joint motion.

댓글 수: 1

hlt
hlt 2023년 1월 8일
편집: hlt 2023년 1월 8일
I want to add some graphical representations just help see something better in simulations.sorry for my english. I have tried to use rev. joint in multibody but unfortunately I couldn't. I'm trying to measure the slope of a line consisting of 2 points.And the length and slope of this line are constantly changing depending on other parameters. These parameters are producing in simulink matlab function.

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

카테고리

도움말 센터File Exchange에서 Simscape Multibody에 대해 자세히 알아보기

질문:

hlt
2023년 1월 8일

편집:

hlt
2023년 1월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by