-
Notifications
You must be signed in to change notification settings - Fork 1
/
timeOut.m
46 lines (36 loc) · 1.01 KB
/
timeOut.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
%=========================================================================%
% individual states are
%sessionStart
%prepareNextTrial
%run
%timeOut
%trialEnd
%enOfExperiment
%=========================================================================%
function timeOut
global MYSCREEN;
% global TRIAL;
global oBeepTIMEOUT;
% fprintf(' TimeOut\n');
% if TRIAL.info.no > 0
% s = sprintf('%s_trial%03d', SESSION_NAME, TRIAL.info.no);
% save(s, 'TRIAL', 'EXP');
% end
% tic;
playblocking(oBeepTIMEOUT);
% playSound('TIME OUT');
% clear screen
% Finish OpenGL rendering into PTB window and check for OpenGL errors.
Screen('EndOpenGL', MYSCREEN.windowPtr(1));
% Screen('FillRect', MYSCREEN.windowPtr(1), MYSCREEN.grayIndex);
% Screen('Flip', MYSCREEN.windowPtr(1));
% Switch to OpenGL rendering again for drawing of next frame:
Screen('BeginOpenGL', MYSCREEN.windowPtr(1));
% while toc<EXP.timeOut
% if(nargin>0)
% getBallDeltas(myport);
% end
% end
return;
% fhandle = @trialEnd;
% end