Scripting API

btkGetAnalogs

Module BTKAnalogAccessor

Description#

Extracts analog channels from the given biomechanical acquisition.

Parameters#

hHandle pointing to a C++ btk::Acquisition object.

Returned Values#

analogsstructure with the analogs' values. Each field corresponds to an analog channel's label (see note #1).
analogsInfostructure with the informations related to the analog channels.
  • analogsInfo.label: structure with the (true) label of each analog channels.
  • analogsInfo.description: structure with the description of each analog channels.
  • analogsInfo.gain: structure with the gain (integer) of each analog channels.
  • analogsInfo.offset: structure with the numerical offset (integer) of each analog channels.
  • analogsInfo.scale: structure with the scaling factor (float) of each analog channels.
  • analogsInfo.frequency: Analog's frequency
  • analogsInfo.units: structure with the unit (string) of each analog channels.

Detailed Description#

Notes#

Note #1: Check the page structureFieldnameFormat to understand how the field's name are formated.

See also#

btkGetAnalogsValues

Syntax#

[analogs, analogsInfo] = btkGetAnalogs(h)

Examples#