Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-DAQmx Counter Frequency Measurement

I need to measure the number of pulses obtained within a time period (3 secs).
So if i use channel 0 to generate a gate pulse for channel 1 how can i do other other things while waiting for my 3 seconds to be up ?
Has anyone got any VB6 code to do it. At the moment i have a task in Max to generate the pulse train with two leading edges every 3 secs.
I use this output to gate the second counter channel. I then have a task created in VB to count edges. Then i would like
DAQmxReadCounterU32 to NOT hold up execution while reading two samples.
 
something like......
 
 
while waiting for two samples
    //do
loop
 
 
0 Kudos
Message 1 of 1
(2,968 Views)