LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Analog in PWM out question

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
0 Kudos
Message 1 of 3
(3,005 Views)
I fixed it the program nevermind!
0 Kudos
Message 2 of 3
(2,962 Views)
I didn't look at the VI, but go ahead and post the solution so that if someone else sees a similar issue they can get the answer here.
0 Kudos
Message 3 of 3
(2,958 Views)