LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measure pulse width every 10ms

Hello,
 
I need to measure every 10ms the pulse width of a 1kHz PWM-Signal. For this I'm using the counter of a DAQ6062E-card.
 
Using the LabView Example, the measurement is performed every 1ms, adding a delay of 10ms in the while loop does not help, because it only delays the display of the value, not the acquisition.
 
I don't find the correct settings of the daqmx vi's, can anyone help me?
 
Many thanks in advance,
 
          Magnus
0 Kudos
Message 1 of 5
(2,919 Views)
I done have the HW to test my modification. so please test it and send me a feed back. I hope it will work.
0 Kudos
Message 2 of 5
(2,902 Views)

Hello Amro,

the timing is now correct, great !!

but there is a high jitter on the signal now, I added the results of the two versions on the block diagram

0 Kudos
Message 3 of 5
(2,899 Views)
Hallo Magnus,
 
did you tryed to but Start and Stop task out side the while loop? if not so plz try it and let me know if it solves the problem.
0 Kudos
Message 4 of 5
(2,893 Views)
If I do this, the vi shows the same behaviour than the first version. The acquisition is every ms, but the buffer is only read every 10ms which results in a huge delay of the PWM_1 indicator.
0 Kudos
Message 5 of 5
(2,876 Views)