1COMEDI_FROM_PHYSICAL(3)                                COMEDI_FROM_PHYSICAL(3)
2
3
4

NAME

6       comedi_from_physical - convert physical units to sample
7

SYNOPSIS

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

DESCRIPTION

15       Converts data given in physical units into Comedi's integer sample val‐
16       ues  (lsampl_t,  between  0  and  maxdata).   The conversion_polynomial
17       parameter is obtained  from  either  comedi_get_hardcal_converter()  or
18       comedi_get_softcal_converter().  The result will be rounded using the C
19       library's current rounding direction.  No range checking of  the  input
20       data  is  performed.  It is up to you to insure your data is within the
21       limits of the output range you are using.
22
23       This function is  intended  to  supplant  comedi_from_phys(),  and  was
24       introduced in order to support software calibrations.
25

RETURN VALUE

27       Comedi sample value corresponding to input physical value.
28
29                                28 October 2007        COMEDI_FROM_PHYSICAL(3)
Impressum