Finding period T from a square signal in Simulink

16 visualizaciones (últimos 30 días)
Marek Andrzej
Marek Andrzej el 2 de Nov. de 2016
Comentada: Ashwini Bhondave el 21 de Oct. de 2021
I am looking for the period T of a square wave, in Simulink (variable width). Not from Scope block, I need it for further math operations.
  2 comentarios
Franck Joel Simo
Franck Joel Simo el 7 de Mayo de 2019
Hi guy
I would to find the period of a Signal in Matlab Simulink. How do we do that. i really need your help. it is very urgent.Thanks in Advance
Ashwini Bhondave
Ashwini Bhondave el 21 de Oct. de 2021
@Franck Joel Simo - did you find the answer of these? I need same help

Iniciar sesión para comentar.

Respuesta aceptada

Mark McBroom
Mark McBroom el 6 de Nov. de 2016
Feed signal into triggered subsystem. Configure triggered subsystem to active on rising edge. In triggered subsystem, use a Digital Clock and Memory block to compute time between current and previous rising edge.
  1 comentario
Marek Andrzej
Marek Andrzej el 8 de Nov. de 2016
Thank you for the answer! I tried but I don't really know where to connect what. Should I be feeding the signal into the trigger slot and substitute "in" with the digital clock?

Iniciar sesión para comentar.

Más respuestas (1)

Marek Andrzej
Marek Andrzej el 14 de Nov. de 2016
Ok I got it. Was a bit trickier. The time in the memory block was being added up so I branched two memory blocks in a series (to have the previous time) and subtracted them. This way the before iteration minus before before iteration is my output. Ergo the time between rising edge.
  2 comentarios
SUMANT ANAND
SUMANT ANAND el 8 de Jul. de 2019
I dont undersatnd how to solve it?? any help
Ashwini Bhondave
Ashwini Bhondave el 21 de Oct. de 2021
@SUMANT ANAND - did you find the answer? can you please share?

Iniciar sesión para comentar.

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