- From: Bart van Deenen <info_at_vandeenensupport.com>
- Date: Fri, 23 Aug 2002 15:57:43 +0200
Hi all
I'm rather new to comedi, and have trouble finding my way around the
documentation, and could use some help. I have a working comedi
setup, with a non realtime Linux (SuSE7.3 distro). I'm happily
reading and writing the analog channels of my NI pci-mio-16XE-10
board, one acquisition at a time.
I'd also like to use the board to generate a steady clock signal. I
need 1 MHz, and 24 Hz. A colleague showed with a NI Windows tool that
the hardware is totally capable of generating the frequencies, but I
have no idea how to do this with comedi.
When I ran the info tool I found no 'timer' subdevices, only a
'counter'. I read Documentation/comedi/counter-spec, and I couldn't
really relate it to the current comedi datastructures. The only
structure that seemed related is struct comedi_cmd_struct.
Unfortunately, the info program shows that subdevice 4 (the counter)
is not command capable, and the comedi_get_cmd_src_mask function
returns a -1 error for this subdevice.
Is it possible to get programmable square waves out of my
pci-mio-16xe-10 using comedi? If so, how?
Thanks in advance
Bart van Deenen
labix:~/comedilib-0.7.18/demo$ info
overall info:
version code: 0x000740
driver name: ni_pcimio
board name: pci-mio-16xe-10
number of subdevices: 7
subdevice 0:
type: 1 (analog input).....
subdevice 4:
type: 6 (counter)
number of channels: 2
max data value: 1
ranges:
all chans: [0,1]
command:
not supported
subdevice 5:
type: 9 (calibration)
...
labix:~/comedi-0.7.64/Documentation/comedi$ cat /proc/comedi
comedi version 0.7.64
format string: "%2d: %-20s %-20s %4d",i,driver_name,board_name,n_subdevices
0: ni_pcimio pci-mio-16xe-10 7
ni_pcimio:
ni_pcimio
--
------------------------
van Deenen Support
Software Development
Peursum st 3
1106 BS Amsterdam
Netherlands
tel: +31-20-7787979
fax: +31-20-7787978
www.vandeenensupport.com
------------------------
Received on 2002-08-23Z12:57:43