Hello all,
Currently I am facing an issue when measuring the PWM Duty Cycle of my signal input to my NI 9361 module.
The issue can be seen in the attached image Spikes in PWM Duty Cycle.
PWM Frequency (ctr6) and Duty Cycle (ctr7) are measured in the same task with virtual channels "PWM_Frequency" and "PWM_DC" respectively.
I was getting more or less the same spikes on PWM Frequency, but it was resolved when I applied the Min Pulse Width digital filter for PWM Frequency measurement. It can be seen in the below Spikes in PWM Duty Cycle image that I don't get any spikes in the PWM Freq waveform.
When I try to apply the Duty Cycle digital filter for the "PWM_DC" channel as shown in the image PWM Duty Cycle Digital Filter (Disabled) then I get error from DAQmx that this filter is not applicable for the channel "PWM_Frequency".
Is it possible to apply both Frequency digital filter and Duty Cycle digital filter in the same DAQmx task?
Why do I get error even when I apply digital filter for both virtual channels separately?
Any lead would be really helpful.
Thanks!
Rahul