Re: Mixing AD conversion and DIO writes

On Sat, Mar 19, 2005 at 10:49:01AM -0800, David Schleef wrote:
> On Wed, Mar 16, 2005 at 04:08:37PM +0000, Daniel Nilsson wrote:
> > I'm only concerned with input at this time, checking for the number of
> > samples received seems reasonable. My only concern with this is error
> > handling, which I don't know how to check for. Is it reasonable to think that
> > if I'm just waiting in a loop to see if I have sampled all my data that the
> > hardware could take some kind of error and stop ? In that case, I'm worrying
> > about being stuck in the loop waiting for data forever. Can I check somehow if
> > the command is process died due to an error ?
> 
> read() returns 0 if the subdevice has stopped normally, or EPIPE if
> there was an error.

Ahhh, there we go. That was the missing piece of information. 

Thank you !

-- 
Daniel Nilsson

Received on 2005-03-19Z20:05:21