- Create a copy the source code of the Rotational Friction block.
- Add a "input" section
- Move the line "brkwy_vel = { 0.1, 'rad/s' }; % Breakaway friction velocity" from the "parameter" section to the "input" section
- Add a Simscape Component block to your model, and use the modified source code.
Is it possible to update the parameters of a Simscape block using the output of another block in Simulink?
조회 수: 1 (최근 30일)
이전 댓글 표시
I am trying to use the output of a simulink integrator as one variable in the "Breakaway friction torque" parameter of a Simscape Rotational Friction block. Is there a way to do this so that the target parameter responds to changes during the model run?
The physical description of my objective is: This is a rotating mechanical system with a friction device within. The friction device changes its breakaway torque as a function of a system response that can't be calculated beforehand. So this property must be tracked and used to continuously update the properties of the rotational friction block.
댓글 수: 0
답변 (1개)
Nicolas Schmit
2017년 11월 16일
So you want to change the breakaway friction torque during the simulation. I think the simplest way to do that is to create a custom component where the breakaway torque is defined as an input instead of a parameter.
The newly created Simscape Component will have a physical signal input that let you set the breakaway torque during the simulation.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Variable Initialization에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!