ba_set_impedance_mode#

Measure electrode impedance in the next stream.

Function Signature#

function result = ba_set_impedance_mode(mode)

Usage#

result = ba_set_impedance_mode(mode)

Inputs#

mode

one of:

'off'     (0)

normal EEG (default).

'31.2hz'  (2)

31.2 Hz test wave; streamed at 250 Hz above 1000 Hz.

'7.8hz'   (1)

7.8 Hz test wave; always streamed at 250 Hz.

'dr_div4' (3)

test wave at a quarter of the sample rate.

Outputs#

result

struct returned by the native MEX session command.

Example#

ba_configure_eeg(1:8, 250, 8, 1);
ba_set_impedance_mode('31.2hz');
start_result = ba_start_stream();
[impedance_kohm, meta] = ba_read_chunk(2000, true);

Notes#

Requires an active device connection and no running stream. In an impedance mode the electrode channels carry each electrode’s impedance in kOhm instead of voltage in uV. The device measures the electrodes one at a time, so each sample (column) is one measurement sweep and the sample number advances by a whole sweep between samples. Select a bias electrode (ba_set_channel_bias) for a reliable measurement. ba_start_stream reports the rate actually streamed. The device resets the mode to ‘off’ when a stream stops or the device disconnects.

Source File#

matlab/ba_set_impedance_mode.m