Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
coxma

Junior Member
Registered:
Posts: 7
Reply with quote  #1 
Thanks for inviting us to the forum! I am sharing a small MonkeyLogic hack that helped the Maier Lab (Vanderbilt) get more utility out of the gen condition function.   

Our goal was to generate stimuli dynamically trial-by-trial (for example, a new random dot matrix with dimensions specified in dva). We found that we needed the gen function to have access to info the monkey's visual display. In monkeylogic, info about the monkey's visual display is stored in a variable called "ScreenInfo". As gen functions take "TrialRecord" as an input, we simply added "ScreenInfo" as a field of "TrialRecord". The change is a follows: 

In the monkeylogic function around line 526, add the following line:  TrialRecord.ScreenInfo = ScreenInfo;  
 

-Michele Cox (michele.a.cox@gmail.com)
0
Wael.Asaad

Administrator
Registered:
Posts: 51
Reply with quote  #2 
This is super-useful and very simple.  Thank you.
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.