I am trying to produce a PWM waveform by using a constant, sawtooth wave generator, and a comparator via Simulink blocks. Given this PWM, is there a way to use this PWM as input and then produce a value of the Duty Cycle of the input PWM as its output?
Is there a Simulink block that does this function? It's like a Duty Cycle reader for a PWM wave input. I have been searching for this for quite some time already but I still can't find an answer. Thanks!