Scripting API

btkSetAnalogValues

Module BTKAnalogModifier

Description#

Modifies analog's values and returns updated analogs.

Parameters#

hHandle pointing to a C++ btk::Acquisition object.
idxInteger containing the index of the analog channel to modify.
labelString containing the label of the analog channel to modify.
newvaluesColumn vector of reals (i.e. scaled data) with the same size than the number of analog frames.

Returned Values#

analogsUpdated list of analog channels. Its format is the same than using the function
analogsInfoUpdated informations related to the analog channels. Its format is the same than using the function

Detailed Description#

  • btkSetAnalogValues(h, idx, newvalues) modifies the scale factor of the analog channel specified by the index idx.
  • btkSetAnalogValues(h, label, newvalues) modifies the scale factor of the analog channel specified by the label label.

Notes#

See also#

btkGetAnalog, btkSetAnalogDescription, btkSetAnalogGain, btkSetAnalogLabel, btkSetAnalogOffset, btkSetAnalogScale, btkSetAnalogUnit

Syntax#

(analogs, analogsInfo) = btkSetAnalogValues(h, idx, newvalues)
(analogs, analogsInfo) = btkSetAnalogValues(h, label, newvalues)

Examples#