Poster of Linux kernelThe best gift for a Linux geek
COMEDI_TO_PHYS

COMEDI_TO_PHYS

Section: (3) Updated: 28 October 2007
Local index Up

 

NAME

comedi_to_phys - convert sample to physical units  

SYNOPSIS

#include <comedilib.h>

double comedi_to_phys (lsampl_t data, comedi_range * range, lsampl_t maxdata);  

DESCRIPTION

Converts data given in sample values (lsampl_t, between 0 and maxdata) into physical units (double). The parameter range represents the conversion information to use, and the parameter maxdata represents the maximum possible data value for the channel that the data was read.

Conversion of endpoint sample values, that is, sample values equal to 0 or maxdata, is affected by the Comedilib out-of-range behavior. If the out-of-range behavior is set to COMEDI_OOR_NAN, endpoint values are converted to NAN. If the out-of-range behavior is set to COMEDI_OOR_NUMBER, the endpoint values are converted similarly to other values.

If there is an error, NAN is returned.


 

Index

NAME
SYNOPSIS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 21:43:40 GMT, April 16, 2011