Provided by: libcomedi-dev_0.8.1-5ubuntu6_amd64 bug

NAME

       comedi_from_physical - convert physical units to sample

SYNOPSIS

       #include <comedilib.h>

       lsampl_t      comedi_from_physical     (double     data,     const     comedi_polynomial_t
       *conversion_polynomial);

DESCRIPTION

       Converts data given in physical units  into  Comedi's  integer  sample  values  (lsampl_t,
       between  0  and  maxdata).   The  conversion_polynomial  parameter is obtained from either
       comedi_get_hardcal_converter() or  comedi_get_softcal_converter().   The  result  will  be
       rounded  using the C library's current rounding direction.  No range checking of the input
       data is performed.  It is up to you to insure your data is within the limits of the output
       range you are using.

       This  function  is intended to supplant comedi_from_phys(), and was introduced in order to
       support software calibrations.

RETURN VALUE

       Comedi sample value corresponding to input physical value.

                                         28 October 2007                  COMEDI_FROM_PHYSICAL(3)