table of contents
COMEDI_DATA_READ_DEL(3) | Comedi reference | COMEDI_DATA_READ_DEL(3) |
NAME¶
comedi_data_read_delayed - read single sample from channel after delaying for specified settling timeSYNOPSIS¶
#include <comedilib.h>
int
comedi_data_read_delayed(comedi_t * device,
unsigned int subdevice,
unsigned int channel,
unsigned int range,
unsigned int aref,
lsampl_t * data,
unsigned int nanosec);
DESCRIPTION¶
Similar to comedi_data_read except it will wait for the specified number of nanoseconds between setting the input channel and taking a sample. For analog inputs, most boards have a single analog to digital converter which is multiplexed to be able to read multiple channels. If the input is not allowed to settle after the multiplexer switches channels, the reading will be inaccurate. This function is useful for allowing a multiplexed analog input to settle when switching channels. Although the settling time is specified in nanoseconds, the actual settling time will be rounded up to the nearest microsecond.AUTHORS¶
David Schleef <ds@schleef.org>Author.
Frank Mori Hess <fmhess@users.sourceforge.net>
Author.
Herman Bruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
Author.
Bernd Porr <tech@linux-usb-daq.co.uk>
Author.
Ian Abbott <abbotti@mev.co.uk>
Author.
Éric Piel <piel@delmic.com>
Author.
COPYRIGHT¶
Copyright © 1998-2003 David Schleef07/14/2014 | Comedi |