logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

comedi_data_write - write single sample to channel

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

       Writes a single sample on the channel that is specified by the Comedi device device, the subdevice
       subdevice, and the channel channel. If appropriate, the device is configured to use range specification
       range and analog reference type aref. Analog reference types that are not supported by the device are
       silently ignored.

       The function comedi_data_write writes the data value specified by the parameter data to the specified
       channel.

Name

       comedi_data_write - write single sample to channel

Return Value

       On success, comedi_data_write returns 1 (the number of samples written). If there is an error, -1 is
       returned.

Synopsis

#include<comedilib.h>intcomedi_data_write(comedi_t*device,unsignedintsubdevice,unsignedintchannel,unsignedintrange,unsignedintaref,lsampl_tdata);

See Also