Simulink delay to a certain time

조회 수: 6 (최근 30일)
yavier kristanto
yavier kristanto 2023년 3월 10일
답변: Animesh 2023년 5월 31일
hai, i encounter a problem running dynamic system in simulink
it composed of 2 equation of motion (in acceleration) which chosed or triggered when the displacement exceed certain point. when i run and plot the acceleration vs displacement figure, there always become many line instead of just 1 line due to the system not calculate that certain point. to be more precise, the 1st EOM result in a displacement that exceed that certain point then it use the 2nd EOM to get the acceleration, and vice versa. i want simulink to calculate that certain point first before pass that point, is there any way to do that ? one of my approach is by using delay block based on the distance needed at that step / velocity at that step, but the result still the same.

답변 (1개)

Animesh
Animesh 2023년 5월 31일
Hi Yavier,
I understand that you want to delay an output for a certain amount of time. You can achieve this in two ways: -
  • Using "clock" block – You can use clock block to get the current simulation time and use it to delay output from a block.
  • Using "MATLAB Function" block – You can use a MATLAB function block to add delay to an output.
You can read more about these blocks here:

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by