1COMEDI_TO_PHYSICAL(3)                                    COMEDI_TO_PHYSICAL(3)
2
3
4

NAME

6       comedi_to_physical - convert sample to physical units
7

SYNOPSIS

9       #include <comedilib.h>
10
11       double  comedi_to_physical  (lsampl_t  data,  const comedi_polynomial_t
12       *conversion_polynomial);
13

DESCRIPTION

15       Converts data  given  in  Comedi's  integer  sample  values  (lsampl_t,
16       between  0  and  maxdata)  into  physical  units (double).  The conver‐
17       sion_polynomial parameter  is  obtained  from  either  comedi_get_hard‐
18       cal_converter()  or  comedi_get_softcal_converter().  No range checking
19       of the input data is performed.  It is up to you to check for data val‐
20       ues  of  0 or maxdata if you want to detect possibly out-of-range read‐
21       ings.
22
23       This function is intended to supplant comedi_to_phys(), and was  intro‐
24       duced in order to support software calibrations.
25

RETURN VALUE

27       Physical value corresponding to the input sample value.
28
29                                28 October 2007          COMEDI_TO_PHYSICAL(3)
Impressum