01-04-2011 10:08 PM
Is there any documented delay between calling a Start Counter Task function and actually seeing the output on the physical port? Currently I am counting external input triggers and then outputing a continuous TTL pulse using a a counter when certain number of triggers have arrived. At the same time I am sending a command to an external stimulation device (RS232) to start. From my tests I have found that the stimulation devices starts approximately 130ms before I see the TTL pulses from the counter output. Is it possible that Start Task function is causing a non-negligible delay?
01-05-2011 04:12 AM
Do you use DAQ assistant or do you have already set up the task and only use the DAQmx Start function?
Felix
01-05-2011 04:20 AM
No, all the code does is starts the task. All the setup happens outside to "trigger counting" loop. I have attached the part that actually starts the task and the stimulation device.