Timing Test
*this is more specific to the butterfly room however it shouldn't be much different in the booth room
Last updated
Was this helpful?
*this is more specific to the butterfly room however it shouldn't be much different in the booth room
Last updated
Was this helpful?
To ensure trigger codes are marking the onset of stimuli precisely we do something called a timing test to determine the length of any delay. To do this we use a photodiode which is a device that senses a change in light, consumes it, and uses that energy to elicit an electrical signal. In our case this electrical signal is sent to Pycorder where its onset is recorded. At the same time your stimulus presentation software will be sending trigger codes to Pycorder to mark stimulus onset. However there is usually a few hundredths of a millisecond delay between the trigger code and the stimulus onset. Using the timing of various stimulus onsets (the more the merrier) and trigger codes we can calculate the average delay time and shift our epochs backward by that amount to align with the trigger codes.
The process of a timing test is pretty easy, especially if you follow this protocol:
Stimulus Presentation Set-up
Create a copy of your Psychopy script
Set the background of your stimulus presentation to black if it isn’t already
Edit the stimuli you’re presenting to be completely white
Update the excel files so your Psychopy script is reading in the new white images
Remove any breaks so your script runs faster
Photodiode Set-up
Grab the photodiode from the storage cabinet straight ahead in the booth room
From the white shelf in the butterfly room, grab the photodiode/acti-champ converter and attach it to the photodiode
Tape the photodiode so that the sensor /is overtop one of your stimuli
Plug the photodiode into the amplifier and turn it on
Plug in the acti-champ battery
Full set-up:
Software Set-up
Open Pycorder on the EEG recording computer
Load the timing test configuration in your study folder /Configurations/timing_test_standard
Click default mode
*You should see photodiode on the right and there should be no activity (just a straight line)
Click record
Start your stimulus presentation
You should see a trigger code followed by activity each time something is presented at the location of the photodiode on the screen
Save the timing test data in your study folder /Data/Timetest_data
Don't forget to turn the photodiode switch off and return it to it's home in the booth room
Analysis
On the server, copy the timing test template folder (Templates/timingtest) over to your study folder on the server
Copy your data off the EEG recording computer and into your version of the timingtest folder
Go into the timing test analysis script and update it for your study (trigger codes, data location…)
Run the script and at the bottom you’ll find by how much your stimulus presentation is delayed by
In your BIDs config file under “epoch” assign the value to “tshift”