Hannes,
Your problem is a little bit tricky. You cannot trigger the counters like the DAQ so you will get some extra measurements from the counters or you will miss some of them.
What are the frequencies of your signal and your PWM? Can you aquire the PWM together with your analog signal and get the PWM by analyzing the channel? Will the shortest PWM pulse be long enough to get reliable results? Do you need the 5Hz Signal for some timed operation, for example to make the correction not for each PWM pulse but for the 5 Hz signal. In this case you have to sample this signal too.
Waldemar
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions