Problem getting SampleRate with MatlabSignalProcessing module
Posted: 26 Oct 2016, 09:24
Hello,
in the initialize.m function for this module i use the next code:
global bci_Parameters bci_States;
global h_im h CH_N CH_MAP tamBloq;
SampleRate= int8(str2double( bci_Parameters.SamplingRate));
tamBloq= int8(str2double( bci_Parameters.SampleBlockSize));
%Error 1
if(1==1)
error( 'SampleRate %s',int2str(SampleRate))
end
%Error 2
if(1==1)
error( 'Tambloq %s',int2str(tamBloq))
end
I have to mention that i did not use both errors together, i commented one to see what the other one showed and inverse ( i do not know an easier way to show values in BCI2000 log actually). While error2 shows 32 (the value i have in the configuration)m error1 always prints 0 (it should print 256).
Aren“t they both supposed to be bci_Parameters values? What could be causing this?
Thanks.
in the initialize.m function for this module i use the next code:
global bci_Parameters bci_States;
global h_im h CH_N CH_MAP tamBloq;
SampleRate= int8(str2double( bci_Parameters.SamplingRate));
tamBloq= int8(str2double( bci_Parameters.SampleBlockSize));
%Error 1
if(1==1)
error( 'SampleRate %s',int2str(SampleRate))
end
%Error 2
if(1==1)
error( 'Tambloq %s',int2str(tamBloq))
end
I have to mention that i did not use both errors together, i commented one to see what the other one showed and inverse ( i do not know an easier way to show values in BCI2000 log actually). While error2 shows 32 (the value i have in the configuration)m error1 always prints 0 (it should print 256).
Aren“t they both supposed to be bci_Parameters values? What could be causing this?
Thanks.