Attached is the primary-side of a typical Flyback converter, utilizing the chopper (low-side switch with reverse diode) power module with the series diode shorted as the working switch, and input gate signals captured via the PWM Capture block. The circuit works as expected when the power modules are configured in ‘switched configuration’.
However, error messages related to state/source dependence during switching between the transformer and power module (see attached pic.) occurs when sub-cycle average configuration is used in the power module. Adding parasitic capacitors and resistors in series between the transformer / power module does not seem to resolve the issue.
Would building the Flyback onto the RT Box using a discrete MOSFET device along with capturing the PWM capture output using the Data Type block be a viable approach?
Thank you so much.