logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

comedi_data_read_delayed - read single sample from channel after delaying for specified settling time

Authors

DavidSchleef <ds@schleef.org>
           Author.

       FrankMoriHess <fmhess@users.sourceforge.net>
           Author.

       HermanBruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
           Author.

       BerndPorr <tech@linux-usb-daq.co.uk>
           Author.

       IanAbbott <abbotti@mev.co.uk>
           Author.

       ÉricPiel <piel@delmic.com>
           Author.

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.

Name

       comedi_data_read_delayed - read single sample from channel after delaying for specified settling time

Synopsis

#include<comedilib.h>intcomedi_data_read_delayed(comedi_t*device,unsignedintsubdevice,unsignedintchannel,unsignedintrange,unsignedintaref,lsampl_t*data,unsignedintnanosec);

See Also