table of contents
COMEDI_DATA_WRITE(3) | Comedi reference | COMEDI_DATA_WRITE(3) |
NAME¶
comedi_data_write - write single sample to channelSYNOPSIS¶
#include <comedilib.h>
int
comedi_data_write(comedi_t * device,
unsigned int subdevice,
unsigned int channel,
unsigned int range,
unsigned int aref,
lsampl_t data);
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.RETURN VALUE¶
On success, comedi_data_write returns 1 (the number of samples written). If there is an error, -1 is returned.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 |