- From: Daniel Nilsson <daniel.n.nilsson_at_home.se>
- Date: Wed, 16 Mar 2005 16:08:37 +0000
Frank Mori Hess (fmhess_at_speakeasy.net) 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 ? > > 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. Frank, 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 ? Thanks Daniel -- Daniel Nilsson (daniel.n.nilsson_at_home.se) 27 Griffin Road Framingham, MA 01701 Homephone: (508) 877-8287 Cellphone: (508) 308-6514
Received on 2005-03-16Z16:08:37