Re: Can't use select() ?

Thanks, Jan

在 2006-09-20三的 00:17 +0200,Jan Gukelberger写道:
> Hi Wensheng,
> 
> On Tue, 2006-09-19 at 16:04 +1000, Wensheng Wang wrote:
> > Hi guys,
> > I am working with comedi but have problems now.
> > I tried to use select() call to scan data incoming, it
> > seemed that I always got timeout and the device file
> > change couldn't be reported (my digital I/O card
> >  doesn't support comedi_command). 
> 
> I'm not sure what you are trying to do. If your card does not support
> commands, you cannot "wait for data".
> You can read the state of a digital input channel via comedi_dio_read().
> 
With your respond now I can stop trying select(),  poll() or something
stupid else, but I really need to scan all these digital I/O channel and
only
read updated data.
Could you show me how to use  comedi_dio_read() or other
methods to get the only updated data ? Thank you very much 
in advance.  

Cheers,

Wensheng

Received on 2006-09-19Z22:54:52