Nick,
I also encountered some non-intuitive behavior when setting up continuous acquisition under DAQmx. It does seem that the task disregards my attempt to set the property for ignoring buffer overwrite errors. I found a workaround for my app, where I only need to read the most recent samples on request and can afford to lose an arbitrary amount of data to overwrites between requests.
Immediately prior to calling DAQmx Read, I call the DAQmx Read Property node to setup the read position. I believe the settings I used are:
- relative to = most recent sample
- offset = (-1) * # of samples to be read
I do not know if that property setting is "sticky", i.e., will it be remembered for multiple calls to DAQmx Read? In my app, I may ask for varying amounts of data so I setup the read position before every read.
-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.