I am using the variable pwm block of the at box 1. the characteristics are in the pictures. when i put an offset of 180 degrees the resulting pwm is not the correct one. and if i go inside the block and look at the carrier i see the following. does anybody know what is happening? Fsw=10000 Hz
The problem is the triangular wave being fed as phase offset for the first channel. It’s not clear what you want to achieve by this. The phase offset for the first channel will have no effect in realtime simulation unless you enable the option ‘Synchronization with model step’. But even then it doesn’t make a lot of sense to feed in a triangular wave.