My favorite way to get this error is to accidentally wire something to the "number of buffers" input on the AI Config VI. This should be left unwired most of the time. You can also get this error if the buffer size is invalid. This would be less than 3 or greater than 2^24 for your board. See
KB 1JAKLN6Q for more information.
Finally, as a check I would run one of the shipping example programs to see if you don't get the same problem. Then you can compare your program to it. Try "Acquire N Scans.vi"
Hope this helps!
Russell
Applications Engineer
National Instruments
http://www.ni.com/support