RE: timers

Hi George,

With the comedilib demo program cmd, the frequency is specified with the
-F switch. If you're programming your own capture application, use the
comedi command and set the delays in comedi_cmd_struct appropriately by
setting scan_begin_arg to the sampling period of the scan and
convert_arg to the sampling period of each sample. Also, scan_begin_src
and covert_src should be set to TRIG_TIMER.

The resulting samples are available by reading from
comedi_fileno(*comedi_t) or by memory mapping the buffer (see the cmd.c
source for more).

Jonathan

-----Original Message-----
From: comedi-admin_at_comedi.org [mailto:comedi-admin_at_comedi.org] On Behalf
Of Georgios Angelopoulos
Sent: Wednesday, July 21, 2004 10:13 PM
To: comedi_at_comedi.org
Subject: timers


Hello, 
I am performing digital control and I want to be able to control the
sampling 
frequency. How could I specify this frequency? I am using a NI DIO PCI
96 
card without hardware timers, in Linux.
Thanks


_______________________________________________
comedi mailing list
comedi_at_comedi.org https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi

Received on 2004-07-22Z12:14:49