04-13-2010 03:54 PM
I am trying to do a simple triggered acquisition in a loop. (This is C code on Mac OS 10.5.8.) Start the task with DAQmxBaseStartTask, collect with DAQmxBaseReadBinaryI16 and stop with DAQmxBaseStopTask.
The trigger occurs every 500 ms and I have 400 ms of data to collect. That leaves 100 ms to start the loop again for the next trigger.
Except that on average, DAQmxBaseStartTask takes 300 ms to complete.
04-14-2010 02:57 PM
Hi mauricev,
The DAQmx Base commands are going to be system dependent, however it sounds like you are creating and clearing your task within the loop. This is not the optimal way to trigger your code. If possible you should only create your task one time then clear it at the end. This could be where your time is coming from. You might take a look at the following Developer Zone example that illustrates a retriggerable AI task.
04-23-2010 07:08 PM
04-26-2010 12:30 PM
04-26-2010 12:36 PM
04-26-2010 12:45 PM
Hi mauricev,
The ability to make counter tasks retriggerable is not a feature of DAQmx base. To provide feedback or suggest this for future versions of the driver, please create a product suggestion at the link below under Product Feedback:
In the meantime, retriggerable tasks are supported for the standard DAQmx driver, so the program from the previous post will work on a Windows system or a Linux system that has DAQmx support (Redhat, Mandriva, Suse).