Browse Source

Making pupil rivalry able to handle 2-ends rather than only one end. -MT

master
mike 5 years ago
parent
commit
9821c44319
  1. BIN
      .DS_Store
  2. BIN
      002 After Image GUI Project/.DS_Store
  3. 13
      002 After Image GUI Project/AfIm_pupil_Exp_Rivalry.m
  4. BIN
      002 After Image GUI Project/TVP_GENERATOR.mlapp

BIN
.DS_Store vendored

Binary file not shown.

BIN
002 After Image GUI Project/.DS_Store vendored

Binary file not shown.

13
002 After Image GUI Project/AfIm_pupil_Exp_Rivalry.m

@ -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

BIN
002 After Image GUI Project/TVP_GENERATOR.mlapp

Binary file not shown.
Loading…
Cancel
Save