Finding period T from a square signal in Simulink

9 次查看(过去 30 天)
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 个评论
Franck Joel Simo
Franck Joel Simo 2019-5-7
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

请先登录,再进行评论。

采纳的回答

Mark McBroom
Mark McBroom 2016-11-6
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 个评论
Marek Andrzej
Marek Andrzej 2016-11-8
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?

请先登录,再进行评论。

更多回答(1 个)

Marek Andrzej
Marek Andrzej 2016-11-14
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.

类别

Help CenterFile Exchange 中查找有关 Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by