Confirm a in signal for a specific time i.e. 5 seconds

Hello,
I need a simulink block that check if a timedependent signal is true for 5 seconds. But I have no idea how I can realised that. I would very much appreciate for any suggestion/help.
Peter
PS: Another, not so urgent, problem is delaying a timedependent signal for a specific time. What is the most robust method? So far I have used the Unit Delay block.

 Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 16 Dez. 2011

1 Stimme

You can use an "Integrator" block for it. If the signal is false (low), re-set the integrator. If the signal is true (high), integrator the signal. Once the integration is larger than 5, you get the check to be true. Otherwise, it's false.
For delay, use the "Transport Delay" block from Simulink->Continuous library.

Weitere Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by