Skip to content

Commit

Permalink
demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne Mennen committed Jun 12, 2017
1 parent 19b497b commit 62cdf85
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ExptWrapper_Display_Subject1.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%exptDir = '~/code/rtAttenPenn/';
%cd(exptDir)
subjectNum = 3;
subjectNum = 100;
projectName = 'rtAttenPenn';
Screen('Preference', 'SkipSyncTests', 1);
runNum = 1;
Expand Down Expand Up @@ -38,7 +38,7 @@
fMRI = 0
useButtonBox = 0
realtimeData = 0
debug = 1
debug = 0
[blockData] = RealTimePunisherDisplay(subjectNum,subjectName,matchNum,runNum,useButtonBox,fMRI,realtimeData,debug)


Expand Down
6 changes: 4 additions & 2 deletions RealTimePunisherDisplay.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
%Screen('Preference', 'SkipSyncTests', 1);


ListenChar(2); %prevent command window output
HideCursor; %hide mouse cursor
% ListenChar(2); %prevent command window output
% HideCursor; %hide mouse cursor
else
Screen('Preference', 'SkipSyncTests', 1);
end
Expand Down Expand Up @@ -215,8 +215,10 @@
% first just make the screen tiny

[screenX screenY] = Screen('WindowSize',screenNum);
% put this back in!!!
windowSize.degrees = [51 30];
resolution = Screen('Resolution', screenNum);
resolution = Screen('Resolution', 0); % REMOVE THIS AFTERWARDS!!
windowSize.pixels = [resolution.width/2 resolution.height];
screenX = windowSize.pixels(1);
screenY = windowSize.pixels(2);
Expand Down
Binary file added demo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo.mat
Binary file not shown.

0 comments on commit 62cdf85

Please sign in to comment.