Hello Jaewon,
I am working on a task in which monkeys should intercept a moving target on a touchscreen.
I am using SingleTarget and CurveTracer as in the following script:
trace1 = CurveTracer(touch_);
trace1.Target = 1;
trace1.Trajectory = [x y];
fix1 = SingleTarget(trace1);
fix1.Threshold = 1.5;
scene1 = create_scene(fix1,1);
run_scene(scene1);
It seems to me that the time interval between frames equals the refresh rate of the touchscreen; is it right?
I tried creating a complementary window to detect touches outside the window and interrupt the task. I used the following script:
trace1 = CurveTracer(touch_);
trace1.Target = 1;
trace1.Trajectory = [x y];
fix1 = SingleTarget(trace1);
fix1.Threshold = 1.5;
wth = WaitThenHold(fix1);
wth.WaitTime = 5000;
wth.HoldTime = 10;
out = ComplementaryWindow(trace1);
out.setTarget(fix1);
ac = AllContinue(wth);
ac.add(out);
scene = create_scene(ac,1);
run_scene(scene);
but unfortunately this did not work. Can ComplementaryWindow work with a moving stimulus?
I am going to use some webcams to film the animals, and I saw that it is possible to synchronize the start of each video with a new trial.
Is it possible to make an "if" statement in my script and lauch the recording of video only in certain conditions?
Many thanks