Re: nervous about command timing

On Fri, 01.10.04, Michael Thomas <Michael.Thomas_at_dynetics.com> wrote:

> trigger?  That still wouldn't help my user code stay synced up.  It just
> seems there should be a better way.

If it's a real time problem (it smells like one :-)) ) you need a real time
system, e.g. RTAI.

It might work like this:

* create an RTAI task
* make task periodic

in the task (via kcomedilib)
* read samples (comedi_do_insn())
* do stuff (calculations etc.)
* write samples (comedi_do_insn())

I think it's also possible to combine this method and comedi_command (for
increased performance and decreased jitter in the sampling periode).

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-04Z12:11:26