ba_set_channel_enabled#
Enable or disable a stream channel.
Function Signature#
function result = ba_set_channel_enabled(channel_id, enabled)
Usage#
result = ba_set_channel_enabled(channel_id, enabled)
Inputs#
channel_idSDK channel ID: 0 sample number, 1 + i electrode i, 1025 + i contact of electrode i, 2049 digital input, 2497 + axis gyroscope, 2561 + axis accelerometer, 2625 streaming flag.
enabledlogical enable flag.
Outputs#
resultstruct returned by the native MEX session command.
Example#
ba_set_channel_enabled(2, false)
Notes#
Requires an active device connection and no running stream. A stream starts with every electrode measurement channel enabled and every other channel disabled, so disable the electrodes you do not want. This is also the state the device returns to when a stream stops or the device disconnects, so set channels again before every ba_start_stream.
Source File#
matlab/ba_set_channel_enabled.m