- From: M. Koehrer <mathias_koehrer_at_arcor.de>
- Date: Mon, 6 Nov 2006 14:30:31 +0100 (CET)
Hi Roberto, thanks for your mail. I think I have loaded all required modules (I have a 2.4.33 kernel), I have enclosed the output of lsmod. Could this be a 6024 issue or a more general one? Regards Mathias Output of lsmod: ------------ Module Size Used by Not tainted ni_pcimio 35036 0 mite 6948 0 [ni_pcimio] 8255 2048 0 [ni_pcimio] comedi_fc 848 0 [ni_pcimio] rtai_comedi 1788 0 (unused) kcomedilib 5232 0 [rtai_comedi] comedi 22720 0 [ni_pcimio 8255 comedi_fc kcomedilib] rtipv4 16360 0 (unused) rtnet 19380 0 [rtipv4] rtai_rtdm 10716 0 [rtipv4 rtnet] rtai_shm 5468 0 [rtai_comedi] rtai_msg 13684 0 (unused) rtai_mbx 6348 0 (unused) rtai_sem 9832 0 [rtai_comedi rtnet rtai_rtdm rtai_mbx] rtai_fifos 23340 0 (unused) rtai_lxrt 53372 0 [ni_pcimio rtai_comedi kcomedilib rtipv4 rtnet rtai_rtdm rtai_shm rtai_msg rtai_mbx rtai_sem rtai_fifos] rtai_hal 52368 0 [ni_pcimio mite comedi_fc rtai_comedi kcomedilib comedi rtnet rtai_rtdm rt ai_shm rtai_msg rtai_mbx rtai_sem rtai_fifos rtai_lxrt] --------------------- > RTAI-Lab runs without problems using the COMEDI devices. > > Please be shure to have all the needed rtai modules loaded (including the > rtai_comedi.ko module!) > > Roberto > > > On Monday 06 November 2006 13:14, M. Koehrer wrote: > > Hi everybody, > > > > I am trying to use the comedi commands using RTAI (RTAI 3.3CV, latest > > comedi/comedilib). On the RTAI CVS I have found an (old?) example testa.c > > that I used as base. (see attached testa.c). > > The program testa sets up a command to sample from the first AIN channel > > a couple of times. > > The test compiles and runs (10 lines are printed out), however the data > > value is always 0. > > I have debugged into the driver (I use a simple PCI NI 6024-E) and I > found > > out that the data is transferred correctly via DMA to the async > > prealloc_buf. It seams as the only thing that misses is the transfer from > > the internal (kernel space) memory that holds the input values (written > by > > DMA) to the user space value. > > > > One strange thing that I have detected was the following: > > The function rt_comedi_alloc_cmd() sets internally the values of > cmd->data > > and cmd->chanlist and returns the values in the arguments **chanlist and > > **data. However, when testa returns from comedi_command_test() the value > of > > cmd->data has changed - it points now somewhere in a 0xexxxxxxx address > > space. Could this be an issue? > > > > Is there somewhere a running example available that shows working comedi > > commands with RTAI? > > > > Thanks for any help on this issue. > > > > Mathias > -- Mathias Koehrer mathias_koehrer_at_arcor.de Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer, nur 44,85 € inkl. DSL- und ISDN-Grundgebühr! http://www.arcor.de/rd/emf-dsl-2
Received on 2006-11-06Z13:30:31