Welcome! Log In Create A New Profile

Advanced

TOUCH

Posted by ROSSELLAF 
TOUCH
April 06, 2023 01:25PM
Hello Jaewon,
sorry to bother you.
I am trying to make a task using a touch screen.

I am using the following:
mano = SingleTarget(touch_);
mano.Target = 1; % TaskObject#1
mano.Threshold = 10; % deg
spoton = WaitThenHold(mano);
spoton.WaitTime = InitFixation; %% Time to Initiate Fixation
spoton.HoldTime = FixDotDuration; %% Holding Time of Fixation spot
sceneSPOTON = create_scene(spoton, fixdot);

but it does not work.
I get a message saying that

Unrecognized function or variable 'touch_'.

Error in tocco_runtime (line 1270)
mano=SingleTarget(touch_);

Error in run_trial (line 132)
runtime(MLConfig,TrialRecord,TaskObject,TrialData);

Error in monkeylogic/UIcallback (line 915)
result = run_trial(MLConfig,datafile);

Error while evaluating UIControl Callback.

Is there something that I should be aware of?

Thank you!
Re: TOUCH
April 06, 2023 01:37PM
Check on [Touchscreen] in the [Other device settings (USB, etc.)] menu.
https://monkeylogic.nimh.nih.gov/docs_MainMenu.html#OtherDeviceSettings
Re: TOUCH
April 06, 2023 03:05PM
Thank you!
I missed this part.
It works now.

Thanks.
RF

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.