1COMEDI_DATA_READ_DELAYED(3)                        COMEDI_DATA_READ_DELAYED(3)
2
3
4

NAME

6       comedi_data_read_delayed - read single sample from channel after delay‐
7       ing for specified settling time
8

SYNOPSIS

10       #include <comedilib.h>
11
12       int comedi_data_read_delayed (comedi_t * device,  unsigned  int  subde‐
13       vice,  unsigned  int  channel,  unsigned  int range, unsigned int aref,
14       lsampl_t * data, unsigned int nanosec);
15

DESCRIPTION

17       Similar to comedi_data_read() except it will  wait  for  the  specified
18       number  of  nanoseconds  between setting the input channel and taking a
19       sample.  For analog inputs, most boards have a single analog to digital
20       converter  which  is  multiplexed to be able to read multiple channels.
21       If the input is not allowed to settle after  the  multiplexer  switches
22       channels,  the reading will be inaccurate.  This function is useful for
23       allowing a multiplexed analog input to settle when switching channels.
24
25       Although the settling time is specified in nanoseconds, the actual set‐
26       tling time will be rounded up to the nearest microsecond.
27
28                                28 October 2007    COMEDI_DATA_READ_DELAYED(3)
Impressum