Hi Helpers,
I have the following problem. I am trying to output a PWM signal of with a dynamic pulse width based on an analog input signal. My code (attached) seems to do just that, however the only way i could get rid of that pesky error that says that it has to complete one cycle was to stop start and rewrite the task, otherwise that error would pop up. This would be no problem, however, when I restart before I rewrite the task when I have changed to a new duty cycle in my while loop the first pulse width in the task is sent out before it rewrites and updates. How do I fix this. I want it to update smoothly.
thanks
Chris