Re: Continuous acquisition latency and buffer overflow

On Tue, 05.10.04, Jonathan Wang <jtwang_at_MIT.EDU> wrote:

> Looking through the driver for my card (ni_mio_common.c), I see three 
> options for the card to generate interrupts depending on the state of 
> its buffer: AIMODE_HALF_FULL, AIMODE_SAMPLE, and AIMODE_SCAN. Is there 
> a way for an application to change the way the card transfers samples 
> to main memory?

The one thing you can change is cmd->flags

Taken from comedilib/demo/cmd.c:

      /* Wake up at the end of every scan */
      cmd->flags |= TRIG_WAKE_EOS;

The details of what happens when TRIG_WAKE_EOS is used depends on the driver.

hth,
Nils

-- 
Institut fuer Schweisstechnik und Fuegetechnik (ISF)      Pontstrasse 49
der RWTH Aachen                                           D-52062 Aachen

ISF - Welding and Joining Institute          fon:  +49 (0)241 / 80-96274
RWTH - Aachen University                     fax:  +49 (0)241 / 80-92170

Received on 2004-10-06Z15:09:34