How can I use input port of TI c2000 ePWM block in simulink?

조회 수: 10 (최근 30일)
Saman
Saman 2024년 2월 26일
댓글: 国栋 2024년 10월 29일 12:39
When I used the input port to set the values for the timer period, CMPA, and CMPB in Simulink, the result was based on the initial values, and they did not change. Consequently, the output PWM functioned according to the initial timer period and CMPA value. To address this, I attached a constant block with a value of 332 for the CMPA parameter. Would you please guide me on how can fix this problem?
  댓글 수: 1
国栋
国栋 2024년 10월 29일 12:39
Hello, I have encountered the same problem and would like to know how you solved it

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

채택된 답변

Sayan
Sayan 2024년 3월 14일
Hi Saman,
The ePWM should generate the PWM according to the provided inputs if it is configured correctly. The ePWM block uses the initial values until it receives the input values from the input port. However, you can try the following probable steps to resolve the issue:
  • The powergui block is used to solve the Simscape circuits. You can try removing the block and "Build,Deploy & Start" the system.
  • Ensure you have configured the block with the right conditions in the ePWM tab to generate PWM.
  • Check if you are using the right ePWM block for the processor you are using.
You can find more details on the ePWM block in the following documentation.
Hope this helps in resolving the issue.
  댓글 수: 1
Saman
Saman 2024년 3월 26일
Thanks for your answer.
I fixed that and generated PWM signals.

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

추가 답변 (0개)

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by