05-23-2013 06:21 AM
As I increase the temperature I want the duty cycle to increase, which it does. However the simulated PWM signal pulses on and off instead of being a continuous wave. Why is this? And how can I change it?
Thanks
Chris
05-24-2013 09:47 AM
Hi Chris,
Welcome to the National Instruments Discussion Forums!
Could you clarify what you mean by 'The PWM signal pulses on and off'?
A PWM signal is essentially a square wave with a varying duty cycle and therefore this is expected.
Are you refering to the fact that adjusting the duty cycle results in duty cycle 'jumps'? If this is the case, increasing the samples per second and number of samples in the express VI will resolve this.
05-24-2013 09:49 AM
In addition to my previous post, should you be running this continuously, I would recommend enclosing your code in a While loop rather than using 'run continuously'.