- From: Dave <dfelson.celson_at_virgin.net>
- Date: Thu, 28 Oct 2004 17:40:20 +0100
I assume you did something along the lines
/sbin/modprobe ni_pcidio
checked dmesg
"comedi: version 0.7.69 - David Schleef etc
Available NI device IDs 0x0160"
comedi_config /dev/comedi1 ni_pcidio
checked dmesg
comedi1: nidio:MITE:"????????" mappped to "????????" DAQ: etc
pci-dio-96
then run dio from the demo program directory with
./dio -f /dev/comedi1
"note the -f "
If you edit the program
mask=0x00FFFFFF;
for(;;){
data = 0x00ffffff;
comedi_dio_bitfield(device,subdevice,mask,&data);
usleep(10);
data = 0;
comedi_dio_bitfield(device,subdevice,mask,&data);
usleep(10);
}
you should get a square wave. Forever.
On Wednesday 27 October 2004 18:45, Caleb Tennis wrote:
> Have you tried pulling the inputs to ground through a resistor, like a
> 10kohm?
>
> > About the problem, i add that i use a digital board NI_PCI_DIO_96 ,an
> > analog
> > board NI 6733.
> > I have seen that the digital board it has 4 8255 chips, i load both the
> > drivers 8255.o, and pcidio.o, and then i make :
> > comedi_config pcidio.o /dev/comedi1
> > I suppose it is correct because all examples in the directory demo of
> > comedilib
> > run, but i can't drive the digital output of the board as i want, they
> > stay
> > fixed at 5 volts.
> > The same happens with the analog board.
> > i run comedi_config pcimio.o /dev/comedi2
> > Thanks
> > Lorenzo.
> >
> >
> > _______________________________________________
> > comedi mailing list
> > comedi_at_comedi.org
> > https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
>
> _______________________________________________
> comedi mailing list
> comedi_at_comedi.org
> https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
Received on 2004-10-28Z15:40:20