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.

 Réponse acceptée

Fangjun Jiang
Fangjun Jiang le 16 Déc 2011

1 vote

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.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by