Hello Dennis,
thanks a lot for your reply. The program you attached is exactly the same as my program. (I am using the DAQmx functions and a DAQ6024E card.)
I tried your code out just now, the measurement for one channel is running properly, if the sample rate is 10000Hz. But if I reduce the sample rate to 100 Hz and sample only one channel, I get a error message on my laptop(Error -200284 at DAQmx Analog 1D Wfm NChannel N Sample). Similar like my program, if I run the program with 2 channels and at 10Hz (or 100Hz), the chart is not updated immediately after the program runs. It seems the chart waits first for several seconds and then display curve.
It seems that the program runs well when the sample rate is high. Since I need to write a program which can support 10-500Hz sample rate and 1- 16 channels, I want to make it clear, why it doesn't work at low sample rate and with few channels.
Can you try 100Hz (or 10Hz) with only one channel on your PC? If it is running properly on your PC, maybe I have to check my laptop and DAQ card. Thanks a lot!
Message Edited by molo511 on 11-22-2006 04:13 PM