Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvdt committed Mar 21, 2022
1 parent d7cfee0 commit 125e3df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
5 changes: 3 additions & 2 deletions TrackerApp/poststim.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@

if isfield(Par,'DasOn') && Par.DasOn == 1
dasclose();
cgshut
% cgshut
Screen('Closeall')

end

Par.DasOn = 0;
clear all
% close all
close all
8 changes: 2 additions & 6 deletions TrackerApp/runstim.m
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,8 @@ function runstim(Hnd)
Hit = 0;
while Time < FIXT && Hit== 0
%Check for 10 ms
dasrun(5)

dasrun(5)
%detect eye enter/exit of control windows
%this will also automaitcally
%occur during pauzes due to a
%callback routine run every single ms
[Hit Time] = DasCheck; %retrieve eyechannel buffer and events, plot eye motion,
end

Expand Down Expand Up @@ -308,7 +304,7 @@ function runstim(Hnd)
% logCorrect = 1;
dasbit( Par.CorrectB, 1);
dasbit( Par.RewardB, 1);
dasjuice( 5 );
dasjuice( 5 ); %level of voltage to open the valve
Par.Corrcount = Par.Corrcount + 1; %log correct trials
% beep

Expand Down
3 changes: 3 additions & 0 deletions dasdummy/dasclose.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function dasclose(varargin)
%do nothing
end

0 comments on commit 125e3df

Please sign in to comment.