Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

period measurement with daqpad-6020e

I am trying to continuously measure the period of a low pulse train whose period varies from 250ms to 2000ms using a daqpad-6020E hardware on counter0. I have the signal connected to GPCTR0_GATE and DGND. It seemed like a simple task but I cannot get it to work. I am configuring the counter to measure period from falling edge to falling edge. When debugging by highlighting excution I notice the counter stays armed inspite of changes in the signal at the gate. Any ideas what is going on? I have attached my VI.
0 Kudos
Message 1 of 2
(2,801 Views)

Hello Isaoz,

I see that you want to measure the period of your pulse train from falling edge to falling edge.
I have looked into the task “Pulse Width or Period Meas Config.vi” and it specifies that you have to use the Count Start.vi instead of using the control tasks to prepare and arm the counter in the initialization stage. You can find this task in Measurement I/O >> Data Acquisition >> Counter >> Intermediate Counter >> Conter Start.vi. You will want to do this before you enter your main program loop. So try using this instead of the control-arm and control prepare vi’s that you have in your program.

Cheers.


Cbryan
0 Kudos
Message 2 of 2
(2,775 Views)