How can i simulate pwm signals with c2000 series.

3 views (last 30 days)
i can't use scope with pwm block and i want to see only simulated signals in scope like proteus simulation.Not real.Please help me.

Answers (1)

Venkatesh Chilapur
Venkatesh Chilapur on 2 Jan 2018
Hi,
We can log the input signals like GPIO input, ADC readings. We can also log state of variables using memorycopy block. So in case of GPIO output, you can identify the variable whose value would eventually be written GPIO output register and log the state of the variable, which would give an effect of logging the output signal itself.
The same approach may not be possible with PWM as it a combination of values that would eventually generate the output. Since much of this activity of using multiple data sets to generate the PWM signal is done by hardware, it is hard to trace the signal activity.
So, with ePWM block or any other block it is not possible to log the PWM signal in simulink environment.
Regards,
Venkatesh C

Communities

More Answers in the  Power Electronics Control

Categories

Find more on Signal Generation, Manipulation, and Analysis in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!