Re: Comedi:Help!Memory Leak using ni_pcimio_common (NI-6533) and cmd

On Tue, 18 Oct 2005, Michael Brooks wrote:

>
> If I turn on TRIG_WAKE_EOS the majority of the time my channels are offset
> by +1,I.E Channel 0 shows up in the buffer at Channel 1. but occasionally
> what should be channel 0 shows up in channel 0. This happens both with
> continous scans and with TRIG_COUNT scans.

Are you sure you are reading EXACTLY one scan's worth of data?  Sometimes 
the async buffer contains a little more than a scan since part of the next 
scan may have arrived.  You need to explictly read just one scan and leave 
the rest of the data alone.

Received on 2005-12-30Z18:21:50