Borrar filtros
Borrar filtros

Check if input status has changed over time period x

1 visualización (últimos 30 días)
Matt
Matt el 1 de Jun. de 2016
Editada: Pavel Dey el 7 de Jun. de 2016
I have a boolean input that I need to monitor status over time period X. If status has changed I would trigger bit.
  1 comentario
Geoff Hayes
Geoff Hayes el 2 de Jun. de 2016
Matt - please provide some context. Where is this input coming from? What bit would you trigger?

Iniciar sesión para comentar.

Respuestas (1)

Pavel Dey
Pavel Dey el 7 de Jun. de 2016
Editada: Pavel Dey el 7 de Jun. de 2016
Not very sure about your use case, but seems like the attached demo model could be helpful. Use the 'Detect Change' block. As the input signal, I have given a boolean random number which I have created in Workspace.

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by