1COMEDI_TO_PHYS(3)                                            COMEDI_TO_PHYS(3)
2
3
4

NAME

6       comedi_to_phys - convert sample to physical units
7

SYNOPSIS

9       #include <comedilib.h>
10
11       double  comedi_to_phys  (lsampl_t  data, comedi_range * range, lsampl_t
12       maxdata);
13

DESCRIPTION

15       Converts data given in sample values (lsampl_t, between 0 and  maxdata)
16       into  physical units (double).  The parameter range represents the con‐
17       version information to use, and the parameter  maxdata  represents  the
18       maximum possible data value for the channel that the data was read.
19
20       Conversion of endpoint sample values, that is, sample values equal to 0
21       or maxdata, is affected by the Comedilib out-of-range behavior.  If the
22       out-of-range  behavior  is  set  to COMEDI_OOR_NAN, endpoint values are
23       converted  to  NAN.   If  the   out-of-range   behavior   is   set   to
24       COMEDI_OOR_NUMBER, the endpoint values are converted similarly to other
25       values.
26
27       If there is an error, NAN is returned.
28
29                                28 October 2007              COMEDI_TO_PHYS(3)
Impressum