LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When simulating a siganl, how do you make it continuous without it pulsing?

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 

0 Kudos
Message 1 of 3
(2,054 Views)

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.

Regards,
Chris (CLED, CLA, CTA)
Applications Engineering Specialist
0 Kudos
Message 2 of 3
(2,026 Views)

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'.

Regards,
Chris (CLED, CLA, CTA)
Applications Engineering Specialist
0 Kudos
Message 3 of 3
(2,025 Views)