Finding period T from a square signal in Simulink

조회 수: 4 (최근 30일)
Marek Andrzej
Marek Andrzej 2016년 11월 2일
댓글: Ashwini Bhondave 2021년 10월 21일
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
Ashwini Bhondave
Ashwini Bhondave 2021년 10월 21일
@Franck Joel Simo - did you find the answer of these? I need same help

댓글을 달려면 로그인하십시오.

채택된 답변

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.
  댓글 수: 2
SUMANT ANAND
SUMANT ANAND 2019년 7월 8일
I dont undersatnd how to solve it?? any help
Ashwini Bhondave
Ashwini Bhondave 2021년 10월 21일
@SUMANT ANAND - did you find the answer? can you please share?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Signal Attributes and Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by