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) stores all the trial data and configurements
......@@ -15,21 +15,21 @@ function handles = pb_vStoreData(handles, data,stim)
fname = [prefix '-' num2str(cfg.trialnumber(2),'%04d') '.vc'];
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');
handles.cfg = cfg;
end
function beta = setCFG(cfg,stim)
function beta = setCFG(cfg)
% stores relevant handles into a new trial cfg
beta = struct('blocknumber',[],...
'trialnumber',[],...
'vestibularsignal',[],...
'nstim',[],...
'stim',stim);
'stim',[]);
beta.blocknumber = cfg.blocknumber;
beta.trialnumber = cfg.trialnumber;
......
......@@ -72,7 +72,7 @@ function pb_vRunExp(handles)
pb_vRunTrial(handles.cfg.zBus, handles.cfg.trialdur);
pb_vTraces(handles);
handles = pb_vStoreData(handles, sig, stim);
handles = pb_vStoreData(handles, sig);
handles.cfg = updateCount(handles.cfg,'trial','count');
toc(trialTime)
end
......
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