Welcome! Log In Create A New Profile

Advanced

cannot see image stimuli using mlplayer trial-replay

Posted by haoran 
cannot see image stimuli using mlplayer trial-replay
November 25, 2019 10:21PM
Hi,

We showed our monkey some images in the screen while tracking their eye position. But when we used mlplayer to replay the trials, it only showed the eye position, but not the images we showed.

The image files were in the same directory as other condition files. Ml build 193 on windows10; error "cannot assign empty matrix" line 325-326 in mlplayer.m. It seems a small issue, but could someone help us out please?

Thanks!
Haoran
Re: cannot see image stimuli using mlplayer trial-replay
November 25, 2019 11:54PM
Please download the package again. Sorry for the inconvenience.
Re: cannot see image stimuli using mlplayer trial-replay
November 27, 2019 04:13PM
Thank you for the reply!
We updated, now it's 199. We saw no errors in matlab, but still replay didn't show any images, and there is just eye position.
What's next?
Re: cannot see image stimuli using mlplayer trial-replay
November 27, 2019 04:27PM
Show me your task and the data file please. I am out of the office for the rest of the week though.
Re: cannot see image stimuli using mlplayer trial-replay
November 27, 2019 06:07PM
Thanks! please see attached.
Re: cannot see image stimuli using mlplayer trial-replay
November 28, 2019 03:14AM
If you manipulate stimuli directly with their MGL object IDs, NIMH ML does not get a chance to collect necessary information and the resulting datafile cannot be replayed. Some adapters accept MGL object IDs, but it is for rare cases that require special control even though replayability is sacrificed. Usually you are not supposed to use MGL object IDs when writing timing scripts.

To use TaskObjects in the scene framework, provide them as input arguments of create_scene.
https://monkeylogic.nimh.nih.gov/docs_RuntimeFunctions.html#create_scene

So your code can be rewritten like the following.
images = 2;  % TaskObject#2
reposition_object(images,[randi([-20 20]) randi([-8 8])]);
fc = TimeCounter(null_);
fc.Duration = 1000;
scene1 = create_scene(fc,images);

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.