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_idelectrode measurement channel ID (1 + electrode index).
gain_modenumeric gain mode expected by the native SDK.
Outputs#
resultstruct 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