I expect the last value or the additional row is the stimulus value, but why it's always has the value zero! I have applied many stimulus by the keyboard stimulus but it's still give me zero ! could you help me to know how to recieve the stimulus?
Code: Select all
disp(Loading the library...');
lib = lsl_loadlib();
disp('Resolving an EEG stream...');
result = {};
while isempty(result)
result = lsl_resolve_byprop(lib,'type','EEG'); end
% create a new inlet
disp('Opening an inlet...');
inlet = lsl_inlet(result{1});
disp('Now receiving data...');
while true
[vec] = inlet.pull_sample();
disp('new data : ')
fprintf('%.2f\t\n',vec);
% Ex : vec = [9987 4452 1147 7777 0]
end