Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

counter sampling

I am currently using a DaqPad - 6016.  I have a few anolog inputs, and both my analog outputs and counters being utilized.   When I run my programs with the counters, the program slows down severly to almost crashing.  I changed the counter blocks in my vi to Daq Assistant in order to change the Task Timing from Continuous to N samples.  This seems to work. 

I want to know how to Periodically take N samples of both counter channels.  Furthermore, I get timed out problems when there is no signal on the counter intputs. 

Thanx
0 Kudos
Message 1 of 2
(2,993 Views)

Hello Aleco,

The DAQPad-6016 has a very small FIFO for the counters and does not support DMA transfer for counter operations. Hence, the slow behavior is expected.  As for the timeout problem, you would need to set the timeout input of the DAQmx Read VI to -1 so that you wait infinitely for the samples to arrive. By default, most of the examples have a timeout value of 10 seconds and that is perhaps why you are seeing a timeout error.

Best Regards,
Ayman K

0 Kudos
Message 2 of 2
(2,968 Views)