Commit ccf6674e authored by Jesse Heckman's avatar Jesse Heckman
Browse files

update vPrime signal

parent 974bcb9f
function handles = pb_vStoreData(handles, data,stim) function handles = pb_vStoreData(handles, data)
% PB_VSTOREDATA(HANDLES, DATA) % PB_VSTOREDATA(HANDLES, DATA)
% %
% PB_VSTOREDATA(HANDLES, DATA) stores all the trial data and configurements % PB_VSTOREDATA(HANDLES, DATA) stores all the trial data and configurements
...@@ -15,21 +15,21 @@ function handles = pb_vStoreData(handles, data,stim) ...@@ -15,21 +15,21 @@ function handles = pb_vStoreData(handles, data,stim)
fname = [prefix '-' num2str(cfg.trialnumber(2),'%04d') '.vc']; fname = [prefix '-' num2str(cfg.trialnumber(2),'%04d') '.vc'];
data = data; %% TO DO: <-- FIX: SELECT DATA FOR TRIAL ONLY data = data; %% TO DO: <-- FIX: SELECT DATA FOR TRIAL ONLY
beta = setCFG(cfg,stim); %% TO DO: <-- FIX: SELECT CFGs FOR TRIAL ONLY beta = setCFG(cfg); %% TO DO: <-- FIX: SELECT CFGs FOR TRIAL ONLY
save(fname,'data', 'beta', '-mat'); save(fname,'data', 'beta', '-mat');
handles.cfg = cfg; handles.cfg = cfg;
end end
function beta = setCFG(cfg,stim) function beta = setCFG(cfg)
% stores relevant handles into a new trial cfg % stores relevant handles into a new trial cfg
beta = struct('blocknumber',[],... beta = struct('blocknumber',[],...
'trialnumber',[],... 'trialnumber',[],...
'vestibularsignal',[],... 'vestibularsignal',[],...
'nstim',[],... 'nstim',[],...
'stim',stim); 'stim',[]);
beta.blocknumber = cfg.blocknumber; beta.blocknumber = cfg.blocknumber;
beta.trialnumber = cfg.trialnumber; beta.trialnumber = cfg.trialnumber;
......
...@@ -72,7 +72,7 @@ function pb_vRunExp(handles) ...@@ -72,7 +72,7 @@ function pb_vRunExp(handles)
pb_vRunTrial(handles.cfg.zBus, handles.cfg.trialdur); pb_vRunTrial(handles.cfg.zBus, handles.cfg.trialdur);
pb_vTraces(handles); pb_vTraces(handles);
handles = pb_vStoreData(handles, sig, stim); handles = pb_vStoreData(handles, sig);
handles.cfg = updateCount(handles.cfg,'trial','count'); handles.cfg = updateCount(handles.cfg,'trial','count');
toc(trialTime) toc(trialTime)
end end
......
Supports Markdown
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