Can anyone tell me how to use TI C2000 PWM (Variable) block?
I am testing a single-phase DC/AC circuit using the latest version of this PWM block as shown in the figure below.
I already put the PWM block into a subsystem and can access the switching signals. However, the output voltage is not a sinusoidal waveform as it is supposed to be. Am I using the PWM block correctly? If not, can you tell me how to adapt it to my system?
Is there any example showing how to use TI C2000 PWM (Variable) block for variable duty cycle, variable frequency, and phase shift for multiple phases?
I have reviewed your “Simple Model” in the TI C2000 Target Support Demos. However, your example is still slightly different than my offline testing. So, I’d love to have your suggestions on my specific application. I look forward to hearing from all of you! Thanks.
I believe you are using the PWM Out block in the right way, the PWM waveforms seem consistent with the duty cycle modulation you are using. Something you need to check is that the in the sine wave block for the duty cycle modulation you have set the frequency as 100 rad/s, while for the load current you have used 100 Hz. Setting both to the same frequency, I see a sinusoidal output voltage.
Regarding the use of the PWM Out block, the help seciton of the blocks explains everything that is needed, and some TI Demo models use it, for example, " LLC Resonant Converter", and " Dual-core Control of an On-Board Charger".
Thank you for your information, and now I can see a sinusoidal output voltage by following your suggestion. However, I cannot find any demo example containing a PWM that can be adapted to my system.
Now I am interleaving 2 bridge-legs, but the PWM output signals seem to be incorrect since only 1 switching signal is operating normally. Please see the attached figures and file for details.
I’ll note you have asked a similar question via support@plexim.com. In the future please refrain from asking in both locations, or at a minimum note you have a parallel request in process. This minimizes duplicate efforts from our engineering team.
I’m noting here the conclusions drawn from that exchange for future forum visitors: there is a bug in the offline model of the PWM variable block that seems to manifest only in PLECS Blockset. The developers are looking into the issue, but it will likely need to be addressed in a future bugfix release. Thank you for bringing this to our attention!