This example program is a delayed matching to colour sample with two distractor shapes. It uses fixation points in the initial phase and between the display of the correct stimuli and the choice phase. To ensure this is not a spatial test, in the choice phase (ChoicePhase) the choice shapes are arranged equidistant from the centre fixation point and from each other, but arranged such that they will not overlap with the position of the correct shape in the sample phase.

 

The flow of the trial looks like this:

Additionally, various timers and other data are saved throughout the codes to make data analysis easier after the session has finished.