I am aquiring analog input data in the following fashion -- I had used AI Config, AI Start, and AI Read. These functions are acurrately reading my data, however, when I specify my buffer size, scan rate, and the # of scans to read at a time, I find that I have more data written to the file that I have specified. Right now my buffer size is 3360 scans, with a scan rate of 1 scan/sec, and my buffer is reading 240 scans at a time (thus every 4 minutes.). However, when I look at the file that I have written data to, I notice that the file has been written to 17 times, where as if you do the math 3360/240 = 14. So somehow I am writing 3 more full buffers to my file, which causes my program to take 12 minutes longer to execute than planne
d (1 scan/sec, buffer =240, 240 sec/60 = 12 min.)
If anybody can help me figure out what I am doing wrong it would be greatly appreciated.
Thanks.