|
|
|
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
|
|
|
|
function AfIm_pupil_Exp_Rivalry(subName,meanLum,Bckg_Chro,axis_chck,AdaptTime,nRep,OneHemi_chck,Simu_chck) |
|
|
|
|
function AfIm_pupil_Exp_Rivalry(subName,meanLum,Bckg_Chro,axis_chck,AdaptTime,nRep,OneHemi_chck,Simu_chck,OneEnd_chck) |
|
|
|
|
Clock = 0; |
|
|
|
|
%%%%%%%%%%%%%%%% |
|
|
|
|
% ARDUINO and CAMERA settings |
|
|
|
@ -373,8 +373,15 @@ WaitSecs(AdaptTime)
@@ -373,8 +373,15 @@ WaitSecs(AdaptTime)
|
|
|
|
|
secs0 = Screen('Flip', window); |
|
|
|
|
for iFrames = 1:nFrames |
|
|
|
|
|
|
|
|
|
Screen('FillOval', window, ramp(iFrames,:), tstCircleLeft ); |
|
|
|
|
Screen('FillOval', window, ramp(iFrames,:), tstCircleRight ); |
|
|
|
|
if OneEnd_chck |
|
|
|
|
Screen('FillOval', window, ramp(iFrames,:), tstCircleLeft ); |
|
|
|
|
Screen('FillOval', window, ramp(iFrames,:), tstCircleRight ); |
|
|
|
|
else |
|
|
|
|
Screen('FillArc', window, rampLeft(iFrames,:), tstCircleLeft, 0, 180); |
|
|
|
|
Screen('FillArc', window, rampRight(iFrames,:), tstCircleRight, 180, 180); |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
Screen('DrawText', window, TrialCountStr, 20, 20, redLut, wRGB); |
|
|
|
|
|
|
|
|
|
Screen('DrawDots', window, [0 0],clockPix, 0, [lftXCircleCenter,center(2)], 2); % black dot for fixation |
|
|
|
|
Screen('DrawDots', window, [0 0],clockPix, 0, [rhtXCircleCenter,center(2)], 2); % black dot for fixation |
|
|
|
|