Rechercher une page de manuel
comedi_from_physical
Langue: en
Version: 28 October 2007 (fedora - 06/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
comedi_from_physical - convert physical units to sampleSYNOPSIS
#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.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre