Welcome! Log In Create A New Profile

Advanced

Aborting a trial on purpose

Posted by Jaewon 
Aborting a trial on purpose
November 20, 2019 11:37AM
Sometimes it is convenient to be able to abort a trial in the middle. You may accidentally set a long wait time or a subject may not perform one last action that needs to complete the trial.

To stop the current trial and pause the task, you can set a hotkey like the following. The key aborts only one eyejoytrack or run_scene at a time, so you may need to type it multiple times until the trial ends.
hotkey('x', 'escape_screen(); assignin(''caller'',''continue_'',false);');  % press 'x'

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.