Re: NI 6259 - Strange values for positive input voltate on analog in

M. Koehrer wrote:
> data[n] = ni_readl(M_Offset_AI_FIFO_Data);
> rt_printk("ni_mio_common: %i: data[n]==%x\n", __LINE__, data[n]);
>
> For a positive input value (+0.5V) data[n] is ffff8c57,
> for a negative input value (-0.5V) data[n] is 73d2

It looks like ni_readl ends up being a 32-bit read.  Perhaps the 
hardware is doing the sign-extension?

Dave

Received on 2006-10-06Z19:53:14