Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 67328

Gapping with even small changes to Duty Cycle on PWM Loop

$
0
0

In my FPGA, I have a loop that will wait forever to get the high/low ticks form Labview realtime, it then writes them to the register for the PWM Loop. The PWM loop (currently at 522 ticks a loop) reads these registers and uses the logic from the first picture to determine if the DO should be on or off. However I am experiencing significant gaping when I increase my duty cycle. For example increasing from 10.2 to 10.3 duty cycle @ 800 Hz shows a pump on screen when measuring the PWM on a scope. However, from 10.3 to 11.2 I see no change! But then another visible change on scope when going from 11.2 to 11.3 on the Duty Cycle. Is 522 ticks too slow for my PWM Loop using this logic? Alot of the wires on my main image are from controls that I have removed in attempt to make the loop faster. The Real time Loop is correct. What is really odd is that the gaps are not as noticeable at lower frequencies. for example, at 200Hz my ramp is smooth, but at 800 Hz it is visibly present in even my pressure gauges (I am controlling a solenoid).

 

Screenshot 2025-01-22 163353.png

 

Screenshot 2025-01-22 163322.png

Screenshot 2025-01-22 163301.png


Viewing all articles
Browse latest Browse all 67328


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>