BTK Matlab Wrapper  0.3dev.0
Matlab bindings for the Biomechanical ToolKit library (BTK)
btkSetAnalogGain Class Reference

Description

Modify analog's gain and return updated analogs.

Syntax:
[analogs, analogsInfo] = btkSetAnalogGain(h, idx, newgain)
[analogs, analogsInfo] = btkSetAnalogGain(h, label, newgain)
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.
newgainInteger wit the new gain (see the detailed description to know the possible gain).
Return values
analogsUpdated list of analog channels. Its format is the same than using the function btkGetAnalogs.
analogsInfoUpdated informations related to the analog channels. Its format is the same than using the function btkGetAnalogs.
Detailed description:
btkSetAnalogGain(h, idx, newgain) modifies the gain of the analog channel specified by the index idx. btkSetAnalogGain(h, label, newgain) modifies the gain of the analog channel specified by the label label.

The available values for the new gain are:
  • 0 : unknown gain
  • 1 : +/- 10 volts
  • 2 : +/- 5 volts
  • 3 : +/- 2.5 volts
  • 4 : +/- 1.25 volts
  • 5 : +/- 1 volt
See Also
btkGetAnalog, btkSetAnalogDescription, btkSetAnalogLabel, btkSetAnalogOffset, btkSetAnalogScale, btkSetAnalogUnit, btkSetAnalogValues