Cannot Validate Phase Locked Loop on F28069M Launchpad

조회 수: 1 (최근 30일)
Rolando Aguilera
Rolando Aguilera 2020년 6월 14일
댓글: Spoorti Pattanashetti 2024년 5월 23일
Hello everyone,
Currently Im testing my power electronics generated code. In order to assess it, Im breaking the model and testing part by part. Now Im testing the PLL, so in order to test it, I generate the code for the PLL embedded on a 30KHz ADC interrupt. Inside the interrupt, I process the PLL and send the data through UART and catch the data on another simulink model and display it on a scope.
The PLL model has been simulated on simulink with expected results, however once I generate the code and deploy into the MCU, it doesnt match the simulation. Im attaching the model for reference.
Any help will be appreciated.
Thanks,
Rolando
  댓글 수: 4
Rolando Aguilera
Rolando Aguilera 2020년 6월 17일
Hello Joel,
Upon endlessly tests I made the PLL worked. What I saw is that code generation has trouble when using "preexisting" blocks as I simulated a synchronous reference frame PLL with a simulink defined integrator vs a custom made one.
Waveform generation can be seen from the UART simulink model attached beforehand or by using CCS debugger graphing window.
Im attaching the model, for someone who might benefit in the future.
Thanks,
Rolando
Spoorti  Pattanashetti
Spoorti Pattanashetti 2024년 5월 23일
it is showing errors that input and output ports not connected
can you please provide a complete simulink model
thank you.

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

답변 (0개)

커뮤니티

더 많은 답변 보기:  Power Electronics Community

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by