1COMEDI_DATA_WRITE(3) COMEDI_DATA_WRITE(3)
2
3
4
6 comedi_data_write - write single sample to channel
7
9 #include <comedilib.h>
10
11 int comedi_data_write (comedi_t * device, unsigned int subdevice,
12 unsigned int channel, unsigned int range, unsigned int aref, lsampl_t
13 data);
14
16 Writes a single sample on the channel that is specified by the Comedi
17 device device, the subdevice subdevice, and the channel channel. If
18 appropriate, the device is configured to use range specification range
19 and analog reference type aref. Analog reference types that are not
20 supported by the device are silently ignored.
21
22 The function comedi_data_write() writes the data value specified by the
23 parameter data to the specified channel.
24
25 On sucess, comedi_data_write() returns 1 (the number of samples writ‐
26 ten). If there is an error, -1 is returned.
27
28 28 October 2007 COMEDI_DATA_WRITE(3)