ba_set_channel_gain#

Set channel gain using a multiplier or SDK gain value.

Function Signature#

function result = ba_set_channel_gain(channel_id, gain_mode)

Usage#

result = ba_set_channel_gain(channel_id, gain_mode)

Inputs#

channel_id

electrode measurement channel ID (1 + electrode index).

gain_mode

numeric gain mode expected by the native SDK.

Outputs#

result

struct returned by the native MEX session command.

Example#

ba_set_channel_gain(1, 8)

Notes#

Requires an active device connection and no running stream. The setting applies to the next stream only: the device resets it when a stream stops or the device disconnects, so set it again before every ba_start_stream.

Source File#

matlab/ba_set_channel_gain.m