Re: wrong analog output offset

> >
> > if I remove the if-line, then two extra samples appear an the analog
> > output channel before the written data,
> > otherwise only one
> >
> > I experimented around with the offset (0x6) that ist written to the
> > device, but that didn't change anything (as far as I tried).
> 
> You definitely don't want to execute the ni_ao_win_outl() line.  
> ni_reg_6xxx_mask is a bit misleading, as it really only refers to the 
> similarities between 611x, 671x and 673x boards.  If you call 
> ni_ao_win_outl() with your board, it will try to write to some nonexistent 
> registers, and wind up writing a garbage sample to the analog output fifo 
> (as you have discovered already).
> 
> As for the second garbage sample, are you sure this still happens with the 
> cvs?  A second call of ni_ao_win_outl() used to happen, but it was fixed 
> about 2 months ago:
> 
> https://cvs.comedi.org/cgi-bin/viewcvs.cgi/comedi/comedi/drivers/ni_mio_common.c.diff?r1=1.223&r2=1.224
> 
> - -- 
> Frank

hi,
my language was not clear enough to express, that I experimented with both if-lines (854 & 2067).
But even with the newest cvs I can still see one extra sample at the beginning of the analog output stream ...

both ni_ao_win_outl-lines, that are disabled by their preceding if-lines (at least on my board) seem to set the offset of the analog-output-fifo.
Could there be a similar register-setting for the PCI-6031E to increase this offset by one sample?
I don't know a lot about this board, so I am lost here ...

thanks for your help,
Lars

Received on 2004-09-26Z15:36:06