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_ids

numeric vector of channels to enable.

sample_rate_hz

optional sample rate in Hz.

gain_mode

optional gain value expected by the SDK.

bias_channels

optional numeric vector of channels to place in bias mode.

Outputs#

result

struct describing the applied wrapper-side configuration.

Example#

ba_configure_eeg([0 1], 250, 8, [0 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.

Source File#

matlab/ba_configure_eeg.m