How can I start ?

Hi guys,
Now I am going to start the comedi dio coding,
but I am not sure what methods I could use. Here
is my case: 
    one pcm3274 digital I/O card;
    several sensors for digital input;
    one device for digital output.
I need to monitor the digital input and read input 
data from these sensors and calculate the position
of a moving thing,  then write to digital output device.

Can I use "comedi_dio_read/write" to implement this?
Or I have to do with "comedi_do_insn", "comedi_dio_bitfiels".
Which one will suit for my case? Any good suggestion
and samples? 

BTW, did anyone use "select()" to monitor your comedi
digital input?

Thank you very much in advance.

Cheers,

wenshenw. 

Received on 2006-09-13Z23:31:19