Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

What is an appropriate buffer size for AI Config, sampling at 200Hz?

LabView Question: I am currently following the example solution for hardware timed, continuous analog input. I have been using a sampling rate of 200Hz and a buffer of 200. I am having trouble with some missing data. The solution example uses a buffer with 4x the sampling rate. What size buffer should I use to ensure I do not lose any data? Thanks -Mark
0 Kudos
Message 1 of 2
(2,150 Views)
Hello Mark
I guess you are using Windows, so there are too many variables ( processor speed, other applications, etc) to state a buffer size.
As a rule of thumb, do next steps:

1. define a big buffer for testing ( 200000 samples).
2. run your program an keep memory of bigger backlog size.
3. run differenten applications ( Word, acrobat, screen saver etc) an let the pc 2 or 3 days working.
4. Note the maximun backlog an set the real one at about 4 times this amount.
You can be quite sure your application will run fine in that PC.
I did this procedure and the Adquisition aplications run during months whithout problems.

Hope it helps.
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 2 of 2
(2,150 Views)