Welcome! Log In Create A New Profile

Advanced

Assigning multiple thresholds in multiTarget

Posted by CptCook95 
Assigning multiple thresholds in multiTarget
October 23, 2024 08:43PM
Hello Jaewon,

I am making a task where I require one target and x number of distractors generated with new properties each trial, each of a different size within a range. I would like to be accurate with my touch thresholds but I cannot figure out a way to assign multiple thresholds using the multiTarget adapter..

A snippet of my code is attached.
Attachments:
open | download - snippet.m (1.6 KB)
Re: Assigning multiple thresholds in multiTarget
October 24, 2024 05:54PM
To use different thresholds per target, put them in columnar order, like a n-by-1 or n-by-2 matrix. n is the number of targets.
mul = MultiTarget(touch_);
mul.Target = [-5 0; 0 0; 5 0];
mul.Threshold = [1; 2; 3];      % a column vector
mul.WaitTime = 5000;
mul.HoldTime = 500;
scene = create_scene(mul);
run_scene(scene);
Re: Assigning multiple thresholds in multiTarget
October 31, 2024 08:07PM
Thank you Jaewon, that works well.

Forgive me if it is documented somewhere, but how would I only end the trial when the target is touched for hold time? I would like record when subjects touch distractors but I would not like the trial to end when they do so. Please let me know or just direct me, thank you in advance.
Re: Assigning multiple thresholds in multiTarget
November 01, 2024 02:58PM
There are so many ways to detect such a behavior. You need to use a little imagination. For example, you can repeat the scene until the subject touches the target.

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.