Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
mgl:taskreferenceoverview [2013/10/24 23:27]
justin
mgl:taskreferenceoverview [2015/01/29 01:32] (current)
justin
Line 149: Line 149:
 </​code>​ </​code>​
  
-What it does is it looks in the "​thistrial"​ structure for what segment we are on, if we are not in segment one (i.e. the intertrial intervalit sets the motion coherence to 0otherwise ​it sets it to whatever the parameter coherence is set to (defined in the task.parameter.coherence field). It also sets the direction of motion of the dots.+What it does is it looks in the "​thistrial"​ structure for what segment we are on, if we are in segment one (the stimulus segment), it sets it to whatever the parameter coherence is set to (defined in the task.parameter.coherence field). Otherwise, we are in segment two (the intertrial interval), so we set coherence to 0 (random movement). It also sets the direction of motion of the dots.
  
 The second (and most important) callback is the one used to draw the stimulus to the screen: The second (and most important) callback is the one used to draw the stimulus to the screen: