- From: Claudio Coppola <claudio.c_at_cdca.com>
- Date: Thu, 20 Mar 2003 23:31:20 -0000
I don't have a das16 to check, but I believe that the 8255 is emulated on
the 'digital' connector, which I/O are you connected to ?
----- Original Message -----
From: "Karen Daniels" <ked_at_phy.duke.edu>
To: <comedi_at_comedi.org>
Sent: Thursday, March 20, 2003 10:53 PM
Subject: Re: das16 and 8255 support
> Sorry. I should have mentioned that I have already made this change. I
> was using the PIN number as the argument to the -c switch, rather than
> the channel number, and also included the -s4
>
> Karen
>
> On Thu, 2003-03-20 at 17:48, Claudio Coppola wrote:
> > ----- Original Message -----
> > From: "Karen Daniels" <ked_at_phy.duke.edu>
> > To: <comedi_at_comedi.org>
> > Sent: Thursday, March 20, 2003 10:22 PM
> > Subject: Re: das16 and 8255 support
> >
> >
> > > On Thu, 2003-03-20 at 10:45, Frank Mori Hess wrote:
> > > > -----BEGIN PGP SIGNED MESSAGE-----
> > > > Hash: SHA1
> > > >
> > > > On Wednesday 19 March 2003 01:16 pm, Karen Daniels wrote:
> > > > > Hello --
> > > > >
> > > > > I have successfully been using the das16 driver with my Kiethley
> > Metrabyte
> > > > > card, and now wish to begin using the digital I/O features as
well.
> > > > >
> > > > > I have recompiled the modules to include 8255 support and am
> > installing the
> > > > > module 8255.o before I install das16.o. Nonetheless, after issuing
the
> > > > > comedi_config command I still get the error message "8255 support
not
> > > > > configured -- disabling subdevice"
> > > >
> > > > You are still using the old (compiled without 8255 support) das16
> > driver.
> > > > Try make clean, make, make install, modprobe das16 -r,(lsmod and
make
> > sure
> > > > das16 got unloaded), modprobe das16
> > > >
> > >
> > > This has solved the problem of recognizing the 8255, but using dio.c
to
> > > toggle a pin which corresonds to one of the 4 digital channels
provides
> > > no discernible output.
> > >
> > > Does the following output from the "info" program mean that the
> > > comedi_dio_read and comedi_dio_write routines are not supported? (I
> > > interpreted the 24 channels to mean pins, but the first digital input
> > > channel is actually at pin #25, so I'm worried).
> > >
> > > subdevice 4:
> > > type: 5 (digital I/O)
> > > number of channels: 24
> > > max data value: 1
> > > ranges:
> > > all chans: [0,5]
> > > command:
> > > not supported
> > >
> > > Perhaps this is related to the fact that subdevices 2 and 3 refer to
the
> > > digital input and output separately, and so I'm not actually accessing
> > > them at all via subdevice 4? If I choose subdevice 2 or 3, then I get
> > > the message "is not a digital I/O subdevice"
> > >
> > >
> > > Thanks,
> > > Karen Daniels
> > >
> > >
> > > _______________________________________________
> > > comedi mailing list
> > > comedi_at_comedi.org
> > > https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
> > >
> >
> > The section of code that toggles the bit is commented out.
> > Try remove the comments and recompile
> >
> > The command line should be something like
> >
> > ./dio -s4 -c1
> >
> > where -s4 is subdevice 4 and -c1 is channel 1
> >
> >
> > comedi_dio_write(device,subdevice,channel,1);
> > #if 0 <------------------------ remove #
> > for(i=0;i<10000;i++){
> > usleep(1000000);
> > comedi_dio_write(device,subdevice,channel,1);
> > printf("1\n");
> > usleep(1000000);
> > comedi_dio_write(device,subdevice,channel,0);
> > printf("0\n");
> > }
> > #endif <--------------------- remove #
> >
> > Claudio
> >
> >
>
>
>
> _______________________________________________
> comedi mailing list
> comedi_at_comedi.org
> https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
>
Received on 2003-03-20Z23:31:20