I´m using the block "Generate Pulse-Train" to generate a PWM signal on two counter´s OUT pin. But with that block I can not make my controller change the duty cycle of the signal value inside a while loop, in order to control the speed of a DC motor. So, how can I vary the duty cycle of a PWM signal inside a while loop??
Thanks!!