The comedi module should allow setting of the
out-of-range behaviour (whether the range end-points on
X inputs are tagged as out-of-range with NaN or
converted as normal).
comedi_set_global_oor_behavior(enum comedi_oor_behavior
behavior);
valid options are
COMEDI_OOR_NUMBER
COMEDI_OOR_NAN
Other similar options should likewise be settable.