-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_task.m
50 lines (45 loc) · 1.58 KB
/
run_task.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
function topNode = run_task(location, blockSequence, subjcode)
%% function [mainTreeNode, datatub] = run_task(location)
%
% run_task = Single Change Point Dots
%
% This function configures, initializes, runs, and cleans up a SingleCP_DotsReversal
% experiment
%
% 11/28/18 aer wrote it
%% ---- Clear
clear globals
%% ---- Configure experiment based on location
%
% locations are 'pilot', 'office', 'short', 'tutorial'
%
% UIs:
% 'dotsReadableEyeEyelink'
% 'dotsReadableEyePupilLabs'
% 'dotsReadableEyeEOG'
% 'dotsReadableHIDKeyboard'
% 'dotsReadableEyeMouseSimulator'
% 'dotsReadableHIDButtons'
% 'dotsReadableHIDGamepad'
switch location
case {'pilot'}
arglist = { ...
'taskSpecs', blockSequence, ...%{'Quest' 50 'SN' 50 'AN' 50}, ...
'subjectCode', subjcode, ...
'trialFolder', 'Blocks003/', ... % folder where trial generation data resides
'readables', {'dotsReadableHIDGamepad'}, ...
'deactivateConsoleStatus', true, ... % if true, trial by trial status not shown in console
'recordDotsPositions', true, ...
'displayIndex', 2, ... % 0=small, 1=main, 2=other screen
'remoteDrawing', false, ...
'sendTTLs', false, ...
'showFeedback', 0, ... % timeout for feedback
'showSmileyFace', 0, ... % timeout for smiley face on correct target
};
end
%% ---- Call the configuration routine
%
topNode = configure_task(arglist{:});
%% ---- Run it!
%
topNode.run();