Need help with a Simulink model (Type 2 PLL)

조회 수: 10 (최근 30일)
Harry Lippy
Harry Lippy 2021년 3월 10일
댓글: Harry 2024년 12월 3일
Hi, MathWorks / MATLAB / Simulink community! I have recently started working my way through the "Software Defined Radio using MATLAB & Simulink and the RTL-SDR" book, and I am wondering if anybody out there would be interested and have time to help me review some of my work on the exercises. Specifically, I'm currently working "Exercise 7.9 - Challenge: Design of a Type 2 PLL" and I am not convinced that my implementation is correct, but I'm having some trouble with debugging as I'm still learning MATLAB and Simulink. I am getting a flat error of 0 right from time 0, which I was not expecting.
Is anyone interested and have time to review my implementation and give some feedback? I'd definitely appreciate it. I am attaching the Simulink and MATLAB files.
Thanks!
Shaun Lippy Middleburg, VA, USA

채택된 답변

Tyler
Tyler 2024년 11월 30일
Hi Harry,
I know this question is about 3 years old, but the main issue with your design is that the PLL is not reaching phaselock (which is why the error appears to be staying at around the 0 point).The reason why the PLL isn't reaching phase lock during the simulation time is because your reference frequency of 1 kHz deviates too much from the expected (quiescent) frequency of 800 Hz. For example, if you set the reference frequency to something like 805 Hz, then the PLL will reach phase lock at around ~3.5 seconds (takes a few seconds due to the small noise bandwidth).
Hope this helps!
Tyler
  댓글 수: 1
Harry
Harry 2024년 12월 3일
Thanks, Tyler! I appreciate the response, and it makes sense. I'm going to go back and try out your suggestions.

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by