How to trigger a constant for a certain amount of time after an event?

3 visualizzazioni (ultimi 30 giorni)
Hi Guys, I'm very new to SimuLink and this is the first time I've had to use it. I'm designing a controller for controlling the torque output to electric motors depending on driver request. The timer is used to control peak and nominal torque.
I've created a timer using the Add block with the output looping back in and various switches to control the other additions to the add block. What I need is, when the timer is >= 10 seconds I get an output to remain constant (lets say 1) for 20 seconds (this is the cooling time needed on the motor), I have a method to control the torque, I just can't get an output to stay constant for a set amount of time when that 10 second event is triggered.
Any ideas will be much appreciated!
Thanks, Dan

Risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by