10-14-2008 01:13 AM
Ed,
My problem was due to my not entering the name of the physical device correctly. Your code works OK with the 6009. Just had to enter device as "Dev1/ai0" (see help for Create Channel VI, if you have similar issue). I am not very familiar with the Dynamic Tasks, but this now works well.
The card also works with the 6215 (supports Dynamic Tasks only).
Al
10-14-2008 08:17 AM
10-20-2008 03:15 PM
Ed,
What you are trying to accomplish is continuous samples. What you have in code is finite samples. Every time that while loop executes, it must create the channel, set up parameters, take the data, log the data, then remove the channel from memory. This is where the delay is coming from. You need to make this continuous samples, and put only the read in a while loop. There are a plethora of examples in the example finder to demonstrate continuous acquisition.
Reading 5 samples at 10hz should update the graph twice a second. I know of no limitations on the throughput, but I am still playing around with this card myself.