Browse Source

Modifying afterimage pupil rivalry to add clock and reporting. -MT

master
mike 5 years ago
parent
commit
ead2be3b19
  1. BIN
      .DS_Store
  2. 2
      002 After Image GUI Project/AfIm_Exp.m
  3. 3
      002 After Image GUI Project/AfIm_pupil_Exp.m
  4. 27
      002 After Image GUI Project/AfIm_pupil_Exp_Rivalry.m
  5. 14
      002 After Image GUI Project/ContMatch_session.m

BIN
.DS_Store vendored

Binary file not shown.

2
002 After Image GUI Project/AfIm_Exp.m

@ -80,7 +80,7 @@ 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_SessionsInfo', subName) infoFile = sprintf('%s_SessionsInfo', subName)
aa = cd('/Users/clemente/Desktop/AfterImage Programs/A Outputs'); ;% folder where the program is. aa = cd('/Users/clemente/Desktop/AfterImage Programs/A Outputs');% folder where the program is.
checkfile = exist(infoFile, 'file') checkfile = exist(infoFile, 'file')
fo = fopen(infoFile, 'at') fo = fopen(infoFile, 'at')

3
002 After Image GUI Project/AfIm_pupil_Exp.m

@ -60,7 +60,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);

27
002 After Image GUI Project/AfIm_pupil_Exp_Rivalry.m

@ -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,20 +437,20 @@ 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;
else
Speak('Report Time')
WaitSecs(5)% This is sumed to the ISI except for the last trial
while ~keypress
if CharAvail
userRes = input(' ');
keypress = 1;
end
end
FlushEvents('mouseDown','keyDown');
end end
% Speak('Report Time')
% WaitSecs(5)% This is sumed to the ISI except for the last trial
% % % % while ~keypress
% % % % if CharAvail
% % % % userRes = input(' ');
% % % % keypress = 1;
% % % % end
% % % % end
% % % % FlushEvents('mouseDown','keyDown');
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% RESPONSES % % RESPONSES %

14
002 After Image GUI Project/ContMatch_session.m

@ -60,13 +60,21 @@ fprintf('\nLast calibration was %s\n', describe.date);
fprintf('\nLast calibration was %s\n', describe.date); fprintf('\nLast calibration was %s\n', describe.date);
pix = pix/1001; pix = pix/1001;
maxLum = 20; %cd/m^2 maxLum = 20; %cd/m^2
%
% lumMod_initial = [.6 .7 .8 1 ];
%
% lCont_initial = [0.02 0.026 0.034 .04];
%
%
% sCont = [.35 .5 .65 .8];
lumMod_initial = [.6 .7 .8 1 ]; lumMod_initial = [.7 .8 1 ];
lCont_initial = [0.02 0.026 0.034 .04]; lCont_initial = [0.026 0.034 .04];
sCont = [.35 .5 .65 .8]; sCont = [.5 .65 .8];
% sCont = [.5 .5 .5 .5]; % sCont = [.5 .5 .5 .5];
nCont = length(sCont); nCont = length(sCont);

Loading…
Cancel
Save