1. Equipment
- The experiment requires a computer and experiment implementation software such as E-Prime, or a programming environment such as MATLAB or PsychoPy.
2. Stimulus and Experiment Design
- The experiment involves short trials in which participants must detect and report a brief visual target. Each trial comprises three frames. Figure 1 depicts the frames.

Figure 1. Sequence of events in the spatial cueing paradigm used to measure the consequences of visual attention. Each trial begins the same way, as shown in frame one, with a central fixation cross and two green boxes on either side. In frame two, the fixation cross is replaced by an arrow, pointing to one of the two boxes (50% of the time each). Finally, in frame three a letter is shown-either an L or a T-in one of the two boxes. In the example shown, the letter is an L. In the right panel example, the letter appears in the box that the arrow points to, producing a congruent trial. In the panel on the left, the letter appears opposite the arrow, producing an incongruent trial. The measure of interest is the time it takes a participant to make a correct response (the reaction time), in particular, the average difference between congruent and incongruent trials.
- In frame one, there are two green boxes, 1.0 in. x 1.0 in. on either side of the display, centered vertically. In addition, there is a red fixation cross made of 0.5 in. long lines, located exactly in the center of the display. The green boxes should be about 1.5 in. away from the edges of the display.
- In the second frame, the fixation cross is replaced by a cue, an arrow that points at one of the two green boxes. Make the arrow red, and easy to see, as shown in Figure 1.
- In frame three, a 'T' or 'L' is added to one of the two boxes, and the arrow from frame two is replaced by the reappearance of the fixation cross.
- The participant's task is to indicate whether the letter in the box is an 'L' or a 'T' using the appropriate keys. Each letter will appear 50% of the time.
- In 80% of the trials, the letter appears in the box that the arrow points to in frame two. These are called congruent trials. In the remaining 20% of trials, the letter appears opposite the arrow's direction. These are called incongruent trials.
- Overall, the letters will appear equally often on the right or left.
- Sequence the experiment, just as described, to include the correct proportions of congruent and incongruent trials in a random order. Include 400 trials total (320 congruent and 80 incongruent).
- Frame one should remain present in each trial for 100 ms, frame 2 for 100 ms, and frame three should remain present until a response is recorded.
- Finally, be sure to program the experiment to collect relevant data. The output file should have a header like that shown in the table in Figure 2, with each row including the data from one trial: the trial number, the position of the letter that appeared (left or right), the specific letter that appeared (L or T), whether the trial was congruent or incongruent (called the condition), the keypress made by the participant, and importantly, the reaction time-the time it took for the participant to make a keypress, measured from the onset of the letter. (This number should be recorded in ms, and expected to range between 50 and 500).

Figure 2. Sample table for organizing data output in a spatial cueing experiment. The primary measure of interest is the reaction time on each trial. In addition, the condition needs to be recorded in order to compare reaction time in congruent and incongruent trials, and the letter type and response given are necessary in order to evaluate response accuracy. It is also a good idea to record letter position to ensure that trials appear in the correct proportions. Please click here to view a larger version of this figure.
3. Running the Experiment
- To run the experiment, recruit 10 to 20 participants.
- When a participant arrives in the lab, explain that the experiment they will do is designed to investigate the nature of visual attention, and ask them to complete an informed consent agreement.
- Seat the participant in front of your testing computer, with the back of their chair 60 cm away from the monitor.
- Explain the instructions to them in detail:
- "Each trial of this experiment will be more or less the same. You will see a red fixation cross at the beginning of each trial. It is important that you keep your eyes fixated at that position at all times. After 100 ms, the fixation cross will be replaced by a red arrow pointing at one of the two green boxes that will also be in the display. Finally, after 100 ms, the arrow will disappear and a letter will appear in one of the two boxes. It will always be an L or a T, and your job is to report which one it is using the appropriate key. We want you to make a keypress as quickly as possible, without sacrificing accuracy, so it is a good idea to keep your right index finger on the L key and your left index finger on the T key at all times. After you make a response, there will be a half-second delay before the next trial begins. Note that the red arrow will not always point to the place where the letter will eventually appear. You will do 400 trials of the experiment, which should take only about 5 to 10 minutes. There will be a short break of two minutes when you are halfway through. Do you have any questions?"
- Once you answer any questions, start the program, and observe the participant for a few trials to make sure they understood the instructions. Then you can leave the testing room until the experiment is complete.
4. Analyzing the Results
- Your program should automatically populate the cells in your results table for each participant as the experiment progresses. Thus at the end of the experiment, you will have a table with 400 rows representing 400 trials for each participant.
- First, check that the responses provided are accurate. To do this, add a column to the table called Accuracy. Figure 3 shows a populated data table.
- To determine whether the response given was correct, compare responses given with the actual identities of the letters shown. Recall that the table includes a column for each of these.
- Excel (or other software) is able to automatically determine whether responses are correct by inputting the following formula into the new column called Accuracy:
=if("Letter Type"= "Response Given",1,0)This means that if the character in the Letter Type column is the same as the one in the Response Given column, there will be a 1 in the accuracy column. Otherwise, there will be a 0, indicating an incorrect response.
- Compute average accuracy for each participant by averaging together the values in the new Accuracy column. If the proportion of correct responses for a participant is less than 0.8, do not further analyze the participant's results; this suggests that the participant either misunderstood the instructions, or did not place priority on performing accurately.
- Now the measure of interest can be computed. Average together the reaction time for a participant in all the congruent trials, and separately, in all the incongruent trials. Then compute a congruent and incongruent average for all the participants grouped together.

Figure 3. A data table populated with results from 25 spatial cueing trials. The final column, labelled 'Accuracy,' was added after the experiment was completed, and a formula was used to automate an accuracy check. Please click here to view a larger version of this figure.