About Matlab and the lua p300 speller accumulator
Posted: Wed Jun 07, 2017 2:40 pm
Hello to the community.
I have a problem, I want to get the outputs of the lua accumulator p300 (which are the stimulation of the rows and columns of the P300 array) and use them as inputs in a matlab scripting box for the process function. That is to say that the process function obtains as input the outputs of the lua accumulator P300. However I do not know how to do it. Thank you for your future answers.
The code of the stimulation outputs of the lua speller accumulator is:
box:send_stimulation(1, maxRowIdx + row_base, now, 0)
box:send_stimulation(2, maxColIdx + col_base, now, 0)
And my matlab code for the procces function is:
function box_out = robotarm_process(box_in)
row = box_in.inputs{1}.matrix_data;
col = box_in.inputs{2}.matrix_data;
But I get the following error in openvibe
Reference to non-existent field 'matrix_data'.
Help please,
I have a problem, I want to get the outputs of the lua accumulator p300 (which are the stimulation of the rows and columns of the P300 array) and use them as inputs in a matlab scripting box for the process function. That is to say that the process function obtains as input the outputs of the lua accumulator P300. However I do not know how to do it. Thank you for your future answers.
The code of the stimulation outputs of the lua speller accumulator is:
box:send_stimulation(1, maxRowIdx + row_base, now, 0)
box:send_stimulation(2, maxColIdx + col_base, now, 0)
And my matlab code for the procces function is:
function box_out = robotarm_process(box_in)
row = box_in.inputs{1}.matrix_data;
col = box_in.inputs{2}.matrix_data;
But I get the following error in openvibe
Reference to non-existent field 'matrix_data'.
Help please,