diff --git a/cleanUp.m b/cleanUp.m index 04fe5ce..f60578b 100644 --- a/cleanUp.m +++ b/cleanUp.m @@ -16,13 +16,19 @@ function cleanUp() % Screen Close All sca; + % Shut down connection with Eyelink + try + Eyelink('shutdown') + catch + end + % Close Psychportaudio if open if PsychPortAudio('GetOpenDeviceCount') ~= 0 PsychPortAudio('Close'); end if ~ismac - % remove PsychDebugWindowConfiguration + % Remove PsychDebugWindowConfiguration clear Screen; end