|
|
@ -58,7 +58,8 @@ redLut = [.8 0 0]; |
|
|
|
|
|
|
|
|
|
|
|
%% Save Session Information |
|
|
|
%% Save Session Information |
|
|
|
|
|
|
|
|
|
|
|
theDate = datestr(now(),'mm/dd/yyyy HH:MM:SS'); |
|
|
|
%theDate = datestr(now(),'mm/dd/yyyy HH:MM:SS'); |
|
|
|
|
|
|
|
theDate = fix(clock); |
|
|
|
% a = '/Users/clemente/Dropbox/Luminotecnia/2018/Experiments/Color Background Afterimage/1 Programs/4 ColBackg AI' ;% folder where the program is. |
|
|
|
% a = '/Users/clemente/Dropbox/Luminotecnia/2018/Experiments/Color Background Afterimage/1 Programs/4 ColBackg AI' ;% folder where the program is. |
|
|
|
infoFile = sprintf('%s%s_SessionsInfo', locOutDir, subName); |
|
|
|
infoFile = sprintf('%s%s_SessionsInfo', locOutDir, subName); |
|
|
|
|
|
|
|
|
|
|
@ -436,19 +437,19 @@ WaitSecs(AdaptTime) |
|
|
|
if ~Clock |
|
|
|
if ~Clock |
|
|
|
WaitSecs(18); % to tell the subject to blink normally |
|
|
|
WaitSecs(18); % to tell the subject to blink normally |
|
|
|
flatSound; |
|
|
|
flatSound; |
|
|
|
end |
|
|
|
else |
|
|
|
|
|
|
|
Speak('Report Time') |
|
|
|
% Speak('Report Time') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
% WaitSecs(5)% This is sumed to the ISI except for the last trial |
|
|
|
WaitSecs(5)% This is sumed to the ISI except for the last trial |
|
|
|
% % % % while ~keypress |
|
|
|
while ~keypress |
|
|
|
% % % % if CharAvail |
|
|
|
if CharAvail |
|
|
|
% % % % userRes = input(' '); |
|
|
|
userRes = input(' '); |
|
|
|
% % % % keypress = 1; |
|
|
|
keypress = 1; |
|
|
|
% % % % end |
|
|
|
end |
|
|
|
% % % % end |
|
|
|
end |
|
|
|
% % % % FlushEvents('mouseDown','keyDown'); |
|
|
|
FlushEvents('mouseDown','keyDown'); |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
|
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
|
|