Borrar filtros
Borrar filtros

Adding a delay to input reading in Simulink

2 visualizaciones (últimos 30 días)
Sarah
Sarah el 15 de Ag. de 2017
Respondida: Brian Hannan el 17 de Ag. de 2017
I am trying to delay the input of an analog reading so that it only reads every 10 seconds, while the rest of the program still runs. I tried the variable time delay but that didn't give me the result I wanted (although it is possible I am using it incorrectly). Any ideas? I don't want to delay the entire model, just this one input.

Respuestas (1)

Brian Hannan
Brian Hannan el 17 de Ag. de 2017
You can use a Sample and Hold block for this. Or you can create a trigger signal with a 10-sec. period to drive a simple enabled subsystem that just passes its input signal value.

Categorías

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

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by