- From: Ian Abbott <abbotti_at_mev.co.uk>
- Date: Mon, 18 Jun 2007 14:06:35 +0100
On 14/06/07 17:49, Paulo André Capellari wrote: > I wont run simultaneously commands, but various in sequence: > > ... some configurations... > comedi_command_test(dev_comedi, &cmd); > comedi_command(dev_comedi, &cmd); > > ... > some code > .... > (at this point, I'm sure that the previous command have been terminated) > > ...another configurations... > comedi_command_test(dev_comedi, &cmd); > comedi_command(dev_comedi, &cmd); > .... > > why only the first command executes? If it's a command on the 'read' subdevice, it may be waiting for you to do a final 'read' to complete the command. This should return 0 to indicate that the acquisition completed without error. Rather than do a final 'read', you could use the 'comedi_cancel' function to terminate the previous command on the subdevice. -- -=( Ian Abbott _at_ MEV Ltd. E-mail: <abbotti_at_mev.co.uk> )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
Received on 2007-06-18Z12:06:35