MATLAB: Can someone explain me on how this duty cycle work

duty cycleSimscapesimulink

Best Answer

Hi,
A duty cycle or power cycle is the fraction of a signal or system is HIGH. Duty cycle is commonly expressed as a percentage or a ratio. A period is the time it takes for a signal to complete an on-and-off cycle.
Hence, for the PWM Generator block we have to input duty cycle in terms of percentage.In order to do that for your model, first try to make the output (Vout / (Vout + Vin)) of your duty cycle subsystem to be in between 0 and 1.Then insert gain block with value 100 before PWM Generator block to convert to a percentage
.