Welcome! Log In Create A New Profile

Advanced

randomDotMotion

Posted by Michelle 
randomDotMotion
December 17, 2020 10:20PM
Hi Jaewon,

I am using 'randomDotMotion' to generate random dots stimulus now. I wanted to analysis the motion energy of these stimuli, in this case, I will need the dots position in each frame. Do you know how to output the dots position in each frame and save them? Thanks a lot.

Best,
Michelle
Re: randomDotMotion
December 18, 2020 04:36PM
It may create a huge data file, as we discussed before. You can either inherit RandomDotMotion or copy its mfile and make your own adapter that does what you want. Add a new property to the adapter and store dot positions in it. Then read the property in the timing script after run_scene() ends.
Re: randomDotMotion
December 18, 2020 09:50PM
I made an example by modifying the "task\runtime v2\8 random dot motion" task.
Attachments:
open | download - 8 random dot motion.zip (2.3 KB)

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.