Commit 4f91f445 authored by Jesse Heckman's avatar Jesse Heckman

minor fix runLSL

parent 184e3d68
function pb_vStoreData(h, dat)
function pb_vStoreData(h, dat, bn)
% PB_VSTOREBLOCKDAT
%
% PB_VSTOREBLOCKDAT(cfg, Dat) stores 'Dat' Data in files.
......@@ -9,10 +9,10 @@ function pb_vStoreData(h, dat)
cfg = h.cfg;
dat(iBlck).event_data = str(1).read;
dat(iBlck).pupil_labs = str(2).read;
dat(iBlck).optitrack = str(3).read;
dat(iBlck).block_info = handles.block(iBlck);
dat(bn).event_data = str(1).read;
dat(bn).pupil_labs = str(2).read;
dat(bn).optitrack = str(3).read;
dat(bn).block_info = handles.block(bn);
[~,fn] = pb_fext(cfg.fname);
file = [cfg.dname filesep 'block_info_' fn '.mat'];
......
......@@ -95,7 +95,7 @@ function pb_vRunExp(handles)
pb_stopLSL(ses);
% store data
pb_vStoreData(handles, Dat);
pb_vStoreData(handles, Dat, iBlck);
% update block information
handles.cfg = pb_updatecount(handles.cfg,'block','count');
......
......@@ -15,7 +15,7 @@ function led = pb_vSimuLED(led)
led(iT).ondelay == led(iT-1).ondelay && ...
led(iT).offdelay == led(iT-1).offdelay
if led(iT).Z ~= tmp(ctmp).Z % but different location (sanity check)
tmp(ctmp).Z = [tmp(ctmp).Z,led(iT).Z];
tmp(ctmp).Z = [tmp(ctmp). Z,led(iT).Z];
end
else
ctmp = ctmp+1;
......
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