Hello,
If you keep polling every sample, then it will be slow indeed.
Do you want to process the data on the basis of sample by sample or after acquiring a set of samples.
In order to make sure you are writing the code correctly, I would suggest you to take a look at :
Link 1 C:\Program Files\National Instruments\MeasurementStudio\CVI\samples\daq\Ai as well.
Regarding the error, what is the exact error message you are getting?
Sincerely,
Sastry V
Applications Engineer
National Instruments