Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx running speed

I am using a PCI 6602 card to do pulse width measurement. Using the standard "Meas Pulse Width-Buffered-Finite.vi" program. The average running time of this VI

is 13 millisecond. Does anyone know how to make this vi to run faster because I need to put it inside a for loop with N=10000. Thanks.

You can find this VI with the "Find examples" option from LabView.

0 Kudos
Message 1 of 4
(5,328 Views)
Are you measuring the time for the whole VI? If you are, that would be a mistake as you would never want to place the whole thing inside a loop. The only thing you want in a loop is the DAQmx read.
0 Kudos
Message 2 of 4
(5,324 Views)

I tried to only put the DAQmx read inside the for loop, but it gave 0, no counts. Only when you put the whole VI inside the loop, it can work.

Yes, I mean the whole VI running time is about 13 ms, want to make it shorter.

0 Kudos
Message 3 of 4
(5,316 Views)
Sorry, missed the fact that you have the timing set to finite samples. Set it to continuous like the continuous shipping example.
0 Kudos
Message 4 of 4
(5,310 Views)