Skip to contents

This function can be needed in exceptional cases such as when the limits stored in the intrument's persistent memory are wrong. In other cases in can be used to restrict the range of values allowed to be set to a smaller range than natively supported by the spectrometer.

Usage

set_descriptor_integ_time(
  descriptor,
  min.integ.time = NA_integer_,
  max.integ.time = NA_integer_,
  force.change = FALSE
)

Arguments

descriptor

list as returned by function get_oo_descriptor

min.integ.time, max.integ.time

numeric values in seconds in seconds.

force.change

If FALSE values outside the range returned by a query to the instrument trigger an error. If TRUE this test is overriden.

Value

a copy of the argument passed for oo_descriptor with the integration time fields of the descriptor modified.

Note

This function should not be needed, but for some instruments the query may fail or return the wrong value. Values should be within the range in the instrument's specifications. Setting wrong values can result in invalid data without an error being triggered.