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.

 Accepted Answer

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.

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!