Hi Nag,
The error you are experiencing is due to the application not retrieving data quickly enough, meaning that the original data is being overwritten. During a continuous, buffered acquisition, the buffer should be monitored to ensure the data is not overwritten. If the value continuously increases during the acquisition, decrease the sampling rate, increase the buffer size, or increase the number of samples per channel to read. Make sure the error output of the Open File Dialog VI (if used) is wired to the error input of the Start Task VI, in order to make sure no readings are taken before the task is ready to begin.
I have attached some sample code which is similar to what I believe you are trying to do, and should solve your problem.
Regards,
Mike
CircularBuffer[1].vi:
http://forums.ni.com/attachments/ni/250/42068/1/CircularBuffer[1].vi