Hi Martin,
The problem that you are seeing is due to a timeout occurring on your read, the solution depends on how you want your application to function:
1. Simply wire a value into the timeout input on the DAQ assistant equivalent to the length of your acquisition. - However this will cause your application to "hang" while reading the data.
2. A better solution will be to implement continuous acquisition (configuration option in the DAQ assistant), this allows you to perform multiple reads of blocks of samples continuously, inside a while loop or for loop (Finite number of reads).
Hope this helps
Kind Regards
Tristan
Applications Engineer
National Instruments UK & Ireland