12-05-2024 10:04 AM
Hi Kevin
If I understand correctly. It means that one counter can generate one counter output and one digital output. With this coorelated DO, I can save one counter. Another counter can be used for the encoder reading. Do I have same frequency of PWM and different duty cycle of PWM? Thanks! Because I want to set different Duty Cycles of both PWMs depending on the demanding load voltage.
12-05-2024 11:47 AM
I didn't really look over all the code once I saw the attempt to do 3 counter tasks with 2 counters.
For independent PWM control, you'll need to 2 counter output tasks. So then you'll need a 2nd USB-6259 to read your encoder. Never mind about correlated DO, it isn't going to work out for your needs now that I understand them better.
-Kevin P
12-07-2024 03:11 AM
Thank you Kevin! I am using two USB6229. It works now.