- From: Bernd Porr <BerndPorr_at_f2s.com>
- Date: Tue, 07 Sep 2004 21:18:05 +0100
Eric,
you get NAN when the raw data is at the lowest or highest value. If you
have a A/D converter which has 12 bits then 0 and 4095 gives you NAN as
it means out of range.
/Bernd
www: http://www.berndporr.me.uk/
http://www.linux-usb-daq.co.uk/
Mobile: +44 (0)7769 506746
Work: +44 (0)141 330 5237
University of Glasgow
Department of Electronics & Electrical Engineering
Room 519, Rankine Building, Oakfield Avenue,
Glasgow, G12 8LT
Eric Keller wrote:
> I took mmap.c from the demo and modified it for my purpose. I just wanted to
> verify that I am doing things correctly. If there is a buffer with 4 channels
> as in mmap, the values are stored as first channel, second channel, third
> channel, 4th channel, first channel, etc, correct?
>
> Also, fairly often I get nan from count to phys. Is this a function of the
> driver I'm using? I'm using the ni_mio_cs driver on a NI 6036E pcmcia card.
> Eric
>
>
> Eric Keller, Ph.D.
> Dept. of Mechanical Engineering
> The Pennsylvania State University
> University Park, PA 16802
> 814-863-4346 (PM)
> 814-863-5466 (AM)
>
> _______________________________________________
> comedi mailing list
> comedi_at_comedi.org
> https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
Received on 2004-09-07Z19:18:05