12-19-2005 01:41 PM
12-20-2005 04:05 AM
12-20-2005 06:24 AM
12-20-2005 04:11 PM
12-20-2005 11:13 PM
Hi,
In brief, The buffer size input parameter on AI Config determines the size of the memory buffer that you want to use during the data acquisition. Then what you have to do is allocate suitable number of number of scans to read on the AI read.
for example, during continous acq,if your buffer size is 1000, scans to read is 100 and sampling rate selected is 1000 samples/sec
Your AI read in a while loop will run 10 times in a secont to retrieve 1000 sapples /sec.
since the buffer is cyclic, The trick here is to always read out the bufer values befor the next set of values overwrite it.
for keep scans to read always less than or equal to buffer size. also keep track of scan back log from the AI read
It specifies the amount of data remaining in the buffer after AI read.If scan backlog increases steadily, you are not reading data fast enough to keep up with the acquisition, and your newly acquired data may overwrite unread data and give you an overwrite error. To correct, decrease the scan rate, increase the number of sacns to read, read the scans more often, or increase the Buffer size.
This atached VI should give you an idea on how to build a vi for buffered acq.
Hope this helps.
Regards
Dev