11-28-2008 05:05 PM
I attached a simple program with 2 ai and 2 ao's. The acquisition rate is set to 1000Hz, but the loop running time is 2ms, when I'd expect it to be 1ms. When I change the rate to 500, loop time goes up to 4ms, instead of 2ms. What am I missing?
Maciek
Solved! Go to Solution.
11-28-2008 06:12 PM
(Sorry, I don't have DAQmx installed, so I cannot really look at the details of your code.)
In the upper task, you read twice per loop interation, once for position and once for force. Wouldn't once be enough?
Read once and just index both values out of the same 2D array at once. See if this makes a difference.