el 09-07-2017 12:36 AM
I have a PCI-6023E card and I need to measure the duty Cyle of a PWM signal with a frequency between 100 Hz and 1KHz.
Can you do with this card?
The way I got it done is by reading the frequency with the CTR0 and stopping the task
Then I read the Pulse Width and stop the task.
Then I calculate the Duty Cycle.
I find it a slow demarcated solution having to boot and stop tasks for each measure.
Can you help me?
Thank you very much....
09-10-2017 04:25 PM - editado 09-10-2017 04:28 PM
You can do it with "DAQmx Create Virtual Channel" configured as "CI Pulse Width".
You need to connect the signal to the Counter's Gate.