ba_configure_eeg#
Apply a simple EEG acquisition configuration.
Function Signature#
function result = ba_configure_eeg(channel_ids, sample_rate_hz, gain_mode, bias_channels)
Usage#
result = ba_configure_eeg(channel_ids)
result = ba_configure_eeg(channel_ids, sample_rate_hz, gain_mode, bias_channels)
Inputs#
channel_idschannel IDs to stream (electrode i is 1 + i). Electrode channels not listed are disabled.
sample_rate_hzoptional sample rate in Hz.
gain_modeoptional gain value expected by the SDK.
bias_channelsoptional electrode measurement channel IDs to use for bias feedback (see ba_set_channel_bias).
Outputs#
resultstruct describing the applied wrapper-side configuration.
Example#
ba_configure_eeg([1 2], 250, 8, 1)
Notes#
Calls ba_set_channel_enabled, ba_set_channel_gain, ba_set_channel_bias, ba_set_sample_rate, and ba_load_config as needed. A stream starts with every electrode enabled, so electrodes missing from channel_ids are disabled first. The device resets this configuration when a stream stops or the device disconnects, so call it again before every ba_start_stream.
Source File#
matlab/ba_configure_eeg.m