![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/836530/image.png)
Timed Ramp signal after a trigger in simulink
58 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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.
0 comentarios
Respuestas (1)
Marcelo
el 16 de Dic. de 2021
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/836530/image.png)
2 comentarios
Ver también
Categorías
Más información sobre Sources en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!