Simulink sample time with external sample clock?

조회 수: 1 (최근 30일)
Brian Tremaine
Brian Tremaine 2019년 7월 17일
댓글: Brian Tremaine 2019년 7월 20일
Hi,
I want to run a S&H block with an external sample pulse. I am simulating a mixed signal digital PLL for a motor control. The phase detector is using boolean logic elements and is run from a 5Mhz pulse generator. The phase detector generates a phase count and a sample pulse about every 360Hz. I need this to drive a digital filter but am unclear how to use my boolean 360Hz sample pulse to act as the sample time for my z-domain digital filter.
Thanks ~
Matlab_question.png

채택된 답변

Jonas
Jonas 2019년 7월 18일
I would suggest to put the digital filter in a triggered subsystem and use the 360 Hz signal as trigger.
  댓글 수: 1
Brian Tremaine
Brian Tremaine 2019년 7월 20일
Thank-you Jonas,
I was using a ZOH with inherited sampling from a D-latch and this was feeding a discrete filter. I was skeptical of this approach since some signals didn't seem correct. I think the triggered sub-system is really what is needed and is closer to my real FPGA code used in the hardware setup.
Brian

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Sources에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by