pb_vRunExp.m 1.25 KB
Newer Older
Jesse Heckman's avatar
Jesse Heckman committed
1
function pb_vRunExp(Exp,h)
Jesse Heckman's avatar
Jesse Heckman committed
2
3
4
5
6
7
8
9
10
11
12
13
14
% PB_VRUNEXP(varargin)
%
% PB_VRUNEXP() forms the core body of experimental paradigms in the VC, and 
% will loop over the trials.
%
% See also ...

% PBToolbox (2018): JJH: j.heckman@donders.ru.nl


   %% INITIALIZE
   %  load & read experiment
   
Jesse Heckman's avatar
Jesse Heckman committed
15
16
17
   [experiment, cfg]    = pb_vReadExp(Exp.expfile); % struct
   nblocks              = cfg.nblocks;
   nTotTrials           = cfg.ntrials;
Jesse Heckman's avatar
Jesse Heckman committed
18
   
Jesse Heckman's avatar
Jesse Heckman committed
19

Jesse Heckman's avatar
Jesse Heckman committed
20
21
22
23
24
   
   
   %% BODY
   %  iterate experiment
   
Jesse Heckman's avatar
Jesse Heckman committed
25
26
27
   for iBlock = 1:nblocks
      nTrials  = Experiment(iBlock).info.ntrials; % ntrials in block
      signal   = Experiment(iBlock).info.veststim; % IMPORTANT: veststim has to be a struct with hor and vert component!
Jesse Heckman's avatar
Jesse Heckman committed
28

Jesse Heckman's avatar
Jesse Heckman committed
29
30
31
32
33
34
      
      for iTrial = 1:nTrials
      %pb_vClearTrial();
      %pb_vRecordData();
      %pb_vRunTrial(experiment(iTrial));
      %pb_vFeedbackGUI();
Jesse Heckman's avatar
Jesse Heckman committed
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
   end
   
   
   %% CHECK OUT
   %  store data
   
   
   
   
end
 
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % 
%                                                           %
%       Part of Programmeer Beer Toolbox (PBToolbox)        %
%       Written by: Jesse J. Heckman (2018)                 %
%                                                           %
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %