필터 지우기
필터 지우기

Timed Ramp signal after a trigger in simulink

조회 수: 58 (최근 30일)
Bugra Calis
Bugra Calis 2021년 12월 6일
편집: Arda 2024년 1월 18일
I want to generate a ramp function in order to drive a motor up to a certain speed when a condition is satisfied. Whenever I wanted to do something like this the ramp signal starts from the beginning of the simulation. I used enabled signal block but it did not help.
Also is there a way to make the ramp signel independent from the time step of the simulation. For example no matter what is the time step I want to generate a ramp signal goes from 0 to 3000 in 2 seconds.

답변 (1개)

Marcelo
Marcelo 2021년 12월 16일
You can try an Integrator with constant "1" input, wich gives a block whose output is "out = time".
Then, when your trigger signal becomes TRUE, you reset the Integrator and plug the "1" constant.
And, multiplying the output, you can change the ramp slope.
In this example, we have a ramp starting in t=3s and incresing 1500 per second.
  댓글 수: 2
Tom Bernand
Tom Bernand 2023년 4월 27일
Good solution, thx!
Arda
Arda 2024년 1월 18일
편집: Arda 2024년 1월 18일
But how is the increasing stopped after two seconds?
Secondly, why do we set the constant of the Integrator to "1"? What does it provide to have output = time?

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by