### bci2000chain

Posted:

**09 Aug 2020, 05:46**Hi,

I would like to reproduce a BCI2000 processing chain offline, exploring the effect of parameter changes and specifically the effect of

olddir = pwd;

cd('C:\Users\Emma\Desktop\BCI2000')

cd tools, cd matlab

bci2000path -AddToMatlabPath tools/matlab

bci2000path -AddToMatlabPath tools/mex

bci2000path -AddToSystemPath tools/cmdline

cd(olddir)

clear olddir

%% Loading BCI2000 dat file and apply bci2000chain function

fn = bci2000path('data','prova','prova_file.dat');

s1=bci2000chain(fn, 'ARSignalProcessing');

s2=bci2000chain(fn, 'ARSignalProcessing', 'ExampleParameters1.prm'); % ExampleParameters1.prm is a prm file contaning information about the desidered NormalizerGains parameter value

s3=bci2000chain(fn, 'ARSignalProcessing', 'NormalizerGains', [0; 4]);

In the structure s1 I've found the BCI control feature, matrix size [time_points x 2], and the States (CursorPos, Result Code) I expected. Instead, in the structures s2 and s3 I've found a BCI control feature, matrix size [time_point x 1], containing all zero values and the same States of the structure s1. Could anyone help me in understanding which is wrong in my implementation, please?

Thank you

Emma

I would like to reproduce a BCI2000 processing chain offline, exploring the effect of parameter changes and specifically the effect of

*NormalizerGains*parameter changes. My data have been acquired by means a 2D-Cursor Task Application Module. I've used "bci2000chain" Matlab function as followsolddir = pwd;

cd('C:\Users\Emma\Desktop\BCI2000')

cd tools, cd matlab

bci2000path -AddToMatlabPath tools/matlab

bci2000path -AddToMatlabPath tools/mex

bci2000path -AddToSystemPath tools/cmdline

cd(olddir)

clear olddir

%% Loading BCI2000 dat file and apply bci2000chain function

fn = bci2000path('data','prova','prova_file.dat');

s1=bci2000chain(fn, 'ARSignalProcessing');

s2=bci2000chain(fn, 'ARSignalProcessing', 'ExampleParameters1.prm'); % ExampleParameters1.prm is a prm file contaning information about the desidered NormalizerGains parameter value

s3=bci2000chain(fn, 'ARSignalProcessing', 'NormalizerGains', [0; 4]);

In the structure s1 I've found the BCI control feature, matrix size [time_points x 2], and the States (CursorPos, Result Code) I expected. Instead, in the structures s2 and s3 I've found a BCI control feature, matrix size [time_point x 1], containing all zero values and the same States of the structure s1. Could anyone help me in understanding which is wrong in my implementation, please?

Thank you

Emma