Borrar filtros
Borrar filtros

Signal Time Range-SIMULINK

7 visualizaciones (últimos 30 días)
NIHAD MOHAMED ALI
NIHAD MOHAMED ALI el 11 de Mzo. de 2021
Comentada: Pavan Guntha el 29 de Mzo. de 2021
I want my input signal only two run for a specific time say from [5 sec to 20 secs ] when my simulation time is 100 secs,, is there any way to do this

Respuestas (1)

Pavan Guntha
Pavan Guntha el 25 de Mzo. de 2021
You may try to solve using the following steps:
1) Use clock block to get the current simulation time.
2) Append a combinational logic to actually compare current simulation time with your time of interest.
3) Use an enabled subsystem to appropriately route the signal to output with output signal of step 2 as control signal to this block.
Here's an illustration of these steps:
As depicted in the scope, the signal (here sine signal is taken as an example) is routed to the output only in the time slot of interest.
  2 comentarios
NIHAD MOHAMED ALI
NIHAD MOHAMED ALI el 27 de Mzo. de 2021
how do i invoke this >=5 or <=20 blocks?
Pavan Guntha
Pavan Guntha el 29 de Mzo. de 2021
You can refer to the compare to constant block documentation for more details.

Iniciar sesión para comentar.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by