1COMEDI_DATA_READ_DEL(3) Comedi reference COMEDI_DATA_READ_DEL(3)
2
3
4
6 comedi_data_read_delayed - read single sample from channel after
7 delaying for specified settling time
8
10 #include <comedilib.h>
11
12 int comedi_data_read_delayed(comedi_t * device, unsigned int subdevice,
13 unsigned int channel, unsigned int range,
14 unsigned int aref, lsampl_t * data,
15 unsigned int nanosec);
16
18 Similar to comedi_data_read except it will wait for the specified
19 number of nanoseconds between setting the input channel and taking a
20 sample. For analog inputs, most boards have a single analog to digital
21 converter which is multiplexed to be able to read multiple channels. If
22 the input is not allowed to settle after the multiplexer switches
23 channels, the reading will be inaccurate. This function is useful for
24 allowing a multiplexed analog input to settle when switching channels.
25
26 Although the settling time is specified in nanoseconds, the actual
27 settling time will be rounded up to the nearest microsecond.
28
30 David Schleef <ds@schleef.org>
31 Author.
32
33 Frank Mori Hess <fmhess@users.sourceforge.net>
34 Author.
35
36 Herman Bruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
37 Author.
38
39 Bernd Porr <tech@linux-usb-daq.co.uk>
40 Author.
41
42 Ian Abbott <abbotti@mev.co.uk>
43 Author.
44
45 Éric Piel <piel@delmic.com>
46 Author.
47
49 Copyright © 1998-2003 David Schleef
50 Copyright © 2001-2003, 2005, 2008 Frank Mori Hess
51 Copyright © 2002-2003 Herman Bruyninckx
52 Copyright © 2012 Bernd Porr
53 Copyright © 2012 Ian Abbott
54 Copyright © 2012, 2015 Éric Piel
55
56 This document is part of Comedilib. In the context of this document,
57 the term "source code" as defined by the license is interpreted as the
58 XML source.
59
60 This library is free software; you can redistribute it and/or modify it
61 under the terms of the GNU Lesser General Public License as published
62 by the Free Software Foundation, version 2.1 of the License.
63
64 This library is distributed in the hope that it will be useful, but
65 WITHOUT ANY WARRANTY; without even the implied warranty of
66 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
67 General Public License for more details.
68
69 You should have received a copy of the GNU Lesser General Public
70 License along with this library; if not, write to the Free Software
71 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
72 USA.
73
74
75
76
77Comedi 05/11/2017 COMEDI_DATA_READ_DEL(3)