Commit 47a995e4 authored by Markus Mueller-Trapet's avatar Markus Mueller-Trapet

bugfix for empty data

parent 378c5d51
......@@ -227,7 +227,7 @@ for iAverage = 1:MS.averages % loop through amount of measurements
sample_vec = lastSample + sample_idx(1) + (1:floor(MS.samplingRate)*sArgs.duration);
disp('The threshold is probably very low and the trigger was activated immediately');
end
if max(sample_vec) > size(z,1);
if max(sample_vec) > size(z,1)
disp('Trigger event was really late. Returning all data recorded');
sample_vec = size(z,1) - sArgs.duration * MS.samplingRate;
end
......@@ -243,7 +243,7 @@ for iAverage = 1:MS.averages % loop through amount of measurements
if isempty(recordData)
disp('No Trigger event found. Just returning the entire data')
recordData = hPlayRec('getRec',pageno).';
recordData = hPlayRec('getRec',pageno);
end
%% finished
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment