On Tuesday 13 May 2008 22:27:45 Ruben Smits wrote:
> On Tuesday May 13 2008 17:49:53 Peter Soetens wrote:
> > For more infomation about this bug, visit
> >
> >
> >
> >
> > --- Comment #2 from Peter Soetens
<peter [dot] soetens [..] ...> 2008-05-13
> > 17:49:53 --- (In reply to comment #0)
> >
> > > Hi,
> > >
> > > i'm experiencing some problems with my comedi analog out device (recent
> > > problems due to ocl code change),
> >
> > If you want people to help out, you could also provide some details, like
> > what 'some problems' are and which functions you are calling.
>
> When i send a value to a channel it is always converted to the lowest
> value.
>
> Our card has a range of 0 to 4096 that gets converted to -10 to 10 V, the
> lowest value is 0, resulting in the fastest possible motion for all axes in
> the negative direction.
>
> I suspect the following lines in the write function (they were changed in
> the patch):
>
>
> unsigned int value = (unsigned int)(dvalue * resolution(chan) - min[chan]);
> if ( myCard )
> return myCard->write( _subDevice, chan, _sd_range[chan],
> _aref[chan], value );
>
> maybe resolution(chan) or min[chan] have the wrong value?
>
> I did some tests after disconnecting the robot and found out that all the
> values i send are converted to 0.
So this means the resolution(chan) parameter is 0....
Peter