‎05-02-2006 06:31 PM
‎05-03-2006 01:34 AM - edited ‎05-03-2006 01:34 AM
Message Edited by daveTW on 05-03-2006 08:45 AM
‎05-03-2006 07:40 AM
Ideally, you do not keep any over head program ( like other than saving to a file) inside a while loop that has a DAqmx read.
There will be a default AI buffer enabled in DAQmx read that ensures that no data will be lost in event of a process as you describe, in case you do not specify an AI buffer in your program
Yes you need to keep an optimal number of samples to read for a specified sampling rate or a buffer over flow will occur.
this you can derive by a few trials.
usually, i keep samples to read = sampling rate, or 1/2 sampling rate, or 1/10 of sampling rate depending on the sampling rate and overheads, if any
hope this helps regards
Dev
‎05-03-2006 09:34 AM