- From: Daniel Nilsson <daniel_at_oden.homeip.net>
- Date: Wed, 16 Mar 2005 22:27:32 -0500
On Wed, Mar 16, 2005 at 10:25:31AM -0500, Frank Mori Hess wrote: > On Tuesday 15 March 2005 08:23 pm, Daniel Nilsson wrote: > > Hi again, > > > > Let me ask the question a different way - How can I check if a command > > that was launched with a finite set of scans is done ? > > > > Thanks > > Daniel > > The usual way you know it's done is when you have all the data you asked > for (for input commands). For output commands, you would need to check > the SDF_BUSY_OWNER or SDF_BUSY subdevice flag. Unfortunately, that is > harder to do than it should be at the moment, but should be fixed soon. Hi Frank, This sounds reasonable to me since I only care about commands for inputs for my application. I have one question though, what happens in the event of a hardware or software error that prevents the command from sampling all the data ? I worry about being stuck in a loop waiting for all sampled if that is actually never going to happen due to some error. Can I check the error status of the comedi command somehow ? Thanks -- Daniel Nilsson
Received on 2005-03-17Z03:27:32