Skip to content

Commit

Permalink
Additional error log messages in attempt to track esi-neuroscience/AR…
Browse files Browse the repository at this point in the history
…CADE issue esi-neuroscience#31. Suspected freeze on account of failure to show pause window. Error messages will indicate whether freeze occurs during a trial or afterwards in the pause block.
  • Loading branch information
jsdpag committed Jun 17, 2022
1 parent 3397688 commit e4c7a39
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions arcade/Core/SGLSessionArc.m
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ function mRunSession(this) % run session
this.mEvalTrialScript(EditableVars,TrialData,TaskFile)
% return from User's Workspace

% Error Log current trial
logmessage( sprintf( 'Trial %d, Block %d, Condition %d',...
TrialData.currentTrial , TrialData.currentBlock , ...
TrialData.currentCondition ) )

% Request higher-precision multi-media timers from Windows
% kernel using timeBeginPeriod at a maximum resolution of
% 1ms
Expand Down Expand Up @@ -135,6 +140,10 @@ function mRunSession(this) % run session

% Release higher-precision multi-media timers
timeBEPeriod( 'e' , 1 ) ;

% Error log end of trial
logmessage( sprintf( 'End of trial %d' , ...
TrialData.currentTrial ) )

EventServer.writeEvents();

Expand All @@ -147,6 +156,10 @@ function mRunSession(this) % run session
% -- Pause Requested? --
% also allows the user to quit the current session
if PauseEvent.wasTriggered

% Error log entering pause block
logmessage( 'Enter pause state' )

% launch pause GUI
eventmarker(eventPause); % send enter Pause marker event
StimBckgrnd.setPauseScreen;
Expand All @@ -156,6 +169,9 @@ function mRunSession(this) % run session

eventmarker(eventResume); % send enter Pause marker event
StimBckgrnd.setBackground;

% Error log exit pause block
logmessage( 'Exit pause state' )
end

% check if the user has requested to quit the session
Expand Down

0 comments on commit e4c7a39

Please sign in to comment.