ba_set_sample_rate#
Set the device sample rate in Hz.
Function Signature#
function result = ba_set_sample_rate(rate_hz)
Usage#
result = ba_set_sample_rate(rate_hz)
Inputs#
rate_hznumeric sample rate in Hz.
Outputs#
resultstruct returned by the native MEX session command.
Example#
ba_set_sample_rate(250)
Notes#
Requires an active device connection and no running stream. Every device supports 250 and 500 Hz; HALO V3 also 1000 Hz and EXG8 also 1000 and 2000 Hz. A rate the connected device does not support raises brainaccess:sdk:wrongValue. 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_sample_rate.m