Advantech PCI-1736UP Spezifikationen Seite 60

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 159
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 59
Comedi
49 / 148
5.4.1.29 comedi_set_global_oor_behavior
comedi_set_global_oor_behavior — out-of-range behavior
Synopsis
#include <comedilib.h>
enum comedi_oor_behavior comedi_set_global_oor_behavior(enum comedi_oor_behavior behavior);
Description
This function changes the Comedilib out-of-range behavior. This currently affects the behavior of comedi_to_phys() when
converting endpoint sample values, that is, sample values equal to 0 or maxdata. 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.
Return value
The previous out-of-range behavior is returned.
5.4.1.30 comedi_to_phys
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 parameter 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. The mapping between physical units is linear and assumes ideal converter characteristics.
Conversion of endpoint sample values, that is, sample values equal to 0 or maxdata, is affected by the Comedilib out-of-range
behavior (see function comedi_set_global_oor_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.
5.4.1.31 comedi_to_physical
comedi_to_physical — convert sample to physical units using polynomials
Synopsis
#include <comedilib.h>
double comedi_to_physical(lsampl_t data, const comedi_polynomial_t * conversion_polynomial);
Seitenansicht 59
1 2 ... 55 56 57 58 59 60 61 62 63 64 65 ... 158 159

Kommentare zu diesen Handbüchern

Keine Kommentare