Deactivate a switch block once the threshold is achieved.

조회 수: 1 (최근 30일)
Vito Murgida
Vito Murgida 2021년 7월 1일
편집: Vito Murgida 2021년 7월 1일
Hi! I have a 3dof mass spring damper system and I want to apply a force (exponential law) on it when the velocity of one of the bodies overpasses a zero value (velocity initially negative). I used a switch block but I want it to be deactivated once the force is applied, so that the force will act for the remaining time, since the said velocity has an oscillatory behaviour and when it becomes negative the switch shuts down the force again (and I don't want this). Do you have any suggestions?

답변 (1개)

Jonas
Jonas 2021년 7월 1일
편집: Jonas 2021년 7월 1일
  댓글 수: 1
Vito Murgida
Vito Murgida 2021년 7월 1일
편집: Vito Murgida 2021년 7월 1일
Hi Jonas, thank you so much for the answer!
Honestly I'm not expert with Simulink, I tried your solution but it doesn't work. I obtain a force constantly zero and also the velocity I use as the control signal is constantly zero (it should be negative at the beginning, since this is the initial conditions I gave to system).
If I don't close the loop it works.
I'm quite sure this is not the correct way of using enabled subsystem. If you have any suggestion I will be grateful to you, otherwise, thank you anyway!

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

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by