Welcome! Log In Create A New Profile

Advanced

Double target task

Posted by IVanegas 
Double target task
December 10, 2019 03:05PM
Hi Jaewon.

I am programming a double target task.
In this task, targets can appear at different times relative to each other (target 1 earlier or later than target 2) and the animal gets rewarded for an eye movement to either of the target locations (which are in opposite sides of the lower visual field).
I am using a TimeCounter & CircleGraphic to create each of the target scenes, for target 1 and 2 independently.

Then, I use the SingleTarget adapter for each of the target locations, the OrAdapter to add them together, and the WaitThenHold last, so that when the eye movement is executed to either of the targets, there is a reward.
Is there a practical way to record "which" of the targets was reached from the Success outcome?

Thank you very much for your help. Please let me know if I should copy the code here instead.
Re: Double target task
December 10, 2019 07:08PM
You said you used two SingleTarget adapters. Check their Success properties after the scene ends. One should be true, while the other is false.
https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#SingleTarget
Re: Double target task
December 11, 2019 02:35PM
Thank you Jaewon.

How can I make such that once either of the targets is reached (either target 1 or target 2), the animal must keep fixation there (hold), otherwise if goes out of that target window, the trial is wrong.

I know I can access adapter.Success, but what are the other properties I can access on real time?
Re: Double target task
December 11, 2019 02:52PM
Try the MultiTarget adapter.
https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#MultiTarget

You cannot access adapter properties on real time, unless you make your own adapters. What you can do in the timing script level is to set input properties, call run_scene() and check output properties after the scene ends. Basically you are interacting with adapters from their outside. The "real time" changes occur during run_scene() and you need to be inside the adapter to get property values that are changing from moment to moment.

For available properties of each adapter, please see the manual.
https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html
Re: Double target task
December 12, 2019 05:00PM
Got it. Thank you Jaewon.

One last question, I noticed the Inter Trial Time keeps increasing over time.
I also get a warning: "Desired ITI exceeded". This does not happen in any of the other tasks I have. In all of my tasks I use a set iti time (1000ms) in the last line.
How can I fix this?
Re: Double target task
December 12, 2019 05:56PM
I guess you may be saving a huge variable whose size is growing every trial.
Re: Double target task
December 12, 2019 06:07PM
Not saving any variable or doing anything different to my other visual tasks. The only difference in this task is that I use
the OrAdapter.

Do you mind if I send you my code for you or someone else in the NIMH MonkeyLogic group, to run it and take a look? For 200 trials, the ITI increases to 8000ms
Re: Double target task
December 12, 2019 10:42PM
You can send it to me via Private Messages.
Re: Double target task
December 13, 2019 07:46PM
You set your filetype to .mat. Change it to .bhv2 and see if there is any difference.

And see this manual page written about the file format.
https://monkeylogic.nimh.nih.gov/docs_GettingStarted.html#FormatsSupported

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.