Hi Jaewon,
I'm using MonkeyLogic Version 2 with a condition file to run a behavioral task involving sequential fixation and choice phases. I encountered an issue where a fixation break at the end of a WaitThenHold scene (scene5) does not trigger a trial error as expected.
Task description:In scene5, the monkey is required to fixate on a central white dot (fixation_point) for a given duration (delay) using the WaitThenHold adapter. Once the fixation hold is completed, the scene transitions to scene6, which presents left and right choice targets (hint1, hint2) using MultiTarget.
Expected behavior:If the monkey breaks fixation on the white dot before delay is over (i.e., during scene5), the trial should terminate with an error.
Actual behavior:As shown in the attached image, the monkey breaks fixation and starts making a saccade toward a choice target before the white dot disappears and scene6 starts. Surprisingly, scene5 does not report an error, and the trial proceeds into scene6 and is completed successfully.
Relevant code:% Scene5 - central fixation
fix5 = SingleTarget(tracker);
fix5.Target = fixation_point;
fix5.Threshold = fixation_win_radius;
wth5 = WaitThenHold(fix5);
wth5.WaitTime = 0;
wth5.HoldTime = delay;
scene5 = create_scene(wth5, [layout1, layout2, cue1, cue2]);
% Scene6 - left/right choice
mul6 = MultiTarget(tracker);
mul6.Target = [hint1, hint2];
mul6.Threshold = fixation_win_radius;
mul6.WaitTime = wait_for_target;
mul6.HoldTime = hold_for_target;
mul6.TurnOffUnchosen = false;
scene6 = create_scene(mul6, [layout1, layout2]);
Stimuli definitions:fixation_point: crc(0.3, [1 1 1], 1, 0, 0);
layout1: crc(0.6, [0.5 0.5 0.5], 0, 7, 0);
layout2: crc(0.6, [0.5 0.5 0.5], 0, -7, 0);
cue1: crc(0.5, [1 0 0], 1, 7, 0);
cue2: crc(0.5, [0 1 0], 1, -7, 0);
hint1: crc(0.5, [1 0 0], 1, 7, 0);
hint2: crc(0.5, [0 1 0], 1, -7, 0);
My question:Why does the WaitThenHold adapter in scene5 not detect the fixation break and terminate the trial early?
Is there something I might be missing in how WaitThenHold or SingleTarget reports breaks?
Thank you in advance for your help!
MengCheng
Attachments:
open |
download -
Snipaste_2025-06-15_20-59-34.png
(189.7 KB)