1COMEDI_FROM_PHYS(3) COMEDI_FROM_PHYS(3)
2
3
4
6 comedi_from_phys - convert physical units to sample
7
9 #include <comedilib.h>
10
11 lsampl_t comedi_from_phys (double data, comedi_range * range, lsampl_t
12 maxdata);
13
15 Converts data given in physical units (data) into sample values
16 (lsampl_t, between 0 and maxdata). The parameter rng represents the
17 conversion information to use, and the parameter maxdata represents the
18 maximum possible data value for the channel that the data will be writ‐
19 ten to.
20
21 Conversion is not affected by out-of-range behavior. Out-of-range data
22 parameters are silently truncated to the range 0 to maxdata.
23
24 28 October 2007 COMEDI_FROM_PHYS(3)