- From: Senthil Kumar SNR <snrsk_at_yahoo.com>
- Date: Thu, 1 Aug 2002 04:35:29 -0700 (PDT)
Hi
Even after using the patch it shows the same type of
error such that it seems does'nt support comedi
command.
The displayed output is :
start : int 0
scan_begin: timer 1000000
convert: now 0
scan_end: count 2
stop: none 0
comedi_command_test: Invalid argument
Should we have to make changes in the comedi_cmd
structure or else any other way....?
Pls help.
senthil
--- David Schleef <ds_at_schleef.org> wrote:
> On Wed, Jul 31, 2002 at 04:30:09AM -0700, Senthil
> Kumar SNR wrote:
> > I am using DT2821 board and configured
> comedi-0.7.64
> > and comedilib-0.7.18. All configured fine and when
> we
> > try to execute the ./info it shows the 3 available
> > subdivices. But when we try to execute the
> ao_waveform
> > it gives the error as :
> >
> > comedi_comnand : Resource temporarily unavailable.
>
> comedi_command() causing an EAGAIN error means that
> the command
> is incompatible with the subdevice. It's a strange
> error number
> because you're supposed to verify that commands are
> compatible
> with a subdevice first. As I am just noticing,
> ao_waveform does
> not do this correctly. Here's a patch.
>
>
>
> dave...
>
>
> Index: ao_waveform.c
>
===================================================================
> RCS file: /var/cvs/comedilib/demo/ao_waveform.c,v
> retrieving revision 1.13
> diff -u -r1.13 ao_waveform.c
> --- ao_waveform.c 7 Jun 2002 00:16:42 -0000 1.13
> +++ ao_waveform.c 31 Jul 2002 20:46:54 -0000
> _at__at_ -163,6 +163,18 _at__at_
>
> dump_cmd(stdout,&cmd);
>
> + err = comedi_command_test(dev, &cmd);
> + if (err < 0) {
> + comedi_perror("comedi_command_test");
> + exit(1);
> + }
> +
> + err = comedi_command_test(dev, &cmd);
> + if (err < 0) {
> + comedi_perror("comedi_command_test");
> + exit(1);
> + }
> +
> if ((err = comedi_command(dev, &cmd)) < 0) {
> comedi_perror("comedi_command");
> exit(1);
>
> _______________________________________________
> comedi mailing list
> comedi_at_comedi.org
>
https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
=====
S.N.R.SENTHILKUMAR
PROJECT ASSOCIATE
AU-KBC RESEARCH CENTER
MIT CAMPUS OF ANNA UNIVERSITY
CHROMEPET
CHENNAI-600044.
PHONE : +91-44-2232711,2234885 ,EXTN: 40, FAX : +91-44-2231034
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
Received on 2002-08-01Z10:35:29