problem for output generation with pci-6035E

Dear Comedi's users,
 I'm trying the following program, which is a simple modified
 tut1.c program given in /demo directory.
 ---------------
 
 #include <stdio.h>    /* for printf() */
 #include <assert.h>
 /*#include <comedilib.h>*/
 #include "/home/mecara/comedilib-0.7.22/include/comedilib.h"
 
 int subdev = 1;             /* change this to your input subdevice */
 int chan = 0;               /* change this to your channel */
 int range = 0;              /* more on this later */
 int aref = AREF_GROUND;     /* more on this later */
 
 int main(int argc,char *argv[])
 {
       comedi_t *it= NULL;
       int chan= 0,i,ret;
       lsampl_t data= 20000;

       it= comedi_open("/dev/comedi0");
       assert(it!= NULL);
       for(i= 0;i<100000;i++)
       {
               ret= comedi_data_write(it,subdev,chan,range,aref,data);
               assert(ret>= 0);
       }

       return 0;
 }
 
 -----------------------------
 
 While tut1.c, with the function comedi_data_read is working well, this
 program compile well but nothing is sent to the output.
 If I check my interrupts with cat /proc/interrupts, I have : (there was 
 a problem of unshared interrupt for IRQ11, but it was solved thanks to
 the link below 
 https://mail.rtai.org/pipermail/rtai/2006-September/016014.html)
 
   0:    1462120          XT-PIC  timer, rtai_jif_chk
   1:      17236          XT-PIC  i8042
   2:          0          XT-PIC  cascade
   5:      30632          XT-PIC  uhci_hcd:usb3, Intel ICH5, eth0
   7:          1          XT-PIC  parport0
   8:          1          XT-PIC  rtc
  10:          0          XT-PIC  uhci_hcd:usb1, uhci_hcd:usb4
  11:          0          XT-PIC  ni_pcimio
  12:     296857          XT-PIC  i8042
  14:     105146          XT-PIC  ide0
  15:          0          XT-PIC  uhci_hcd:usb2
 NMI:          0
 ERR:          0
 
 When I have a look on /var/log/messages i have the following error :
 
 Jul 13 15:12:56 mrpub27 kernel: comedi0: ni_pcimio: timed out waiting 
 for AO_TMRDACWRs_In_Progress_St to clear
 
 THanks in advance for your help!!
 
 
 Quentin BOMBLED
 Assistant
 Department of Theoretical mechanics
 Faculty of Engineering in Mons
 31 Boulevard Dolez, 7000 Mons
 Belgium

Received on 2007-07-16Z06:31:25