If we are synching 3 PWM modules on a single TI C2000 PWM Var Block, is there a way to disable only two of the modules at runtime? For example, if I want all signals from modules 5 & 6 to be low, how can I do that? I believe with C2000’s driverlib you can software force disable PWM modules, would that be possible here in PLECS?
See the “Enable port” setting in the Output tab:
An additional component port is created if Enable port is set to Show. Applying a signal != 0 to this port sets the PWM channel(s) to passive.
The input to the enable port can be vectorized, so you can enable/disable the outputs of one channel at a time.
Thank you. The issue is every time I show the Enable port on the PWM Var block, I get the attached error. I fed a vectorized constant into it and get this error. I also tried adding a Zero-Order Hold with a sampling time of my controller’s discretization step size between the constant and the enable port and that did not fix this. Even when I do not feed anything into the enable port I get this error. What can I do to get past this?
Please post a representative model for further assistance. I suspect the issue is due to the algebraic loop, but cannot verify without a model.

