How to do delay measurements at MEG

Instruction on how to do a delay measurement of Audio or Picture stimulus experiment at the MEG.
 

The measurement

 
  1. Connect either audio or light measurement device (see figs) to the Misc/Analog BNC-input of the data acquisition system. Open that particular channel in the data acquisition (for example Misc007).
  2. Connect the audio (microphone) or light sensor to the source of your stimulus.
  3. Start your stimulus scenario. The light sensor picks up the signal best when the contrast between “stimulus on” and “stimulus off” is large. Microphone might need you to pump up the volume a bit.
  4. Record some raw data where the audio or light signal is measured as an analog “bump” and the trigger comes from your stimulus computer.
  5. Transfer and analyze your data. Idea is to define the time between the start of the stimulus trigger and start of the actual stimulus, which is the delay time. The delay time should not have too much jitter, although it will have constant delay, which can be taken into account in the data analysis.

delay_meas_optic_fibre_red.jpg

delay_meas_microphone_red.jpg


Analysis of delay measurement

  1. In CIBR server, start terminal window (or for example in Putty after XMing is on) and run command mne_browse_raw
  2. Open your delay-measurement file .fif
  3. Go to Adjust -> Filter
  4. Untick “Filter active” if it is on and press “Apply” or directly “OK”. Filters can distort delay signals which are supposed to have fairly sharp rise times.
  5. Go to Adjust -> Selection
  6. Press Add.. and a new window opens
  7. Select (probably these but will depend how you measured your delays) channels Misc007 and STI101. You can name the selection in “Name” if you want and press “Add”
  8. Press “Done” and goes back to “Selection” window
  9. Find your new selection you made (for example named “New selection”) and press “Done”.delay_meas_analysis_1.png
  10. In Adjust -> Scales you can adjust the time scale (Time Span) and if needed also the intensity scale. Zoom your time scale so that you can confidently see the rise moment of your analog signal and preferably also the digital signal from STI101simultaneously. For example set the time span to 0.2sdelay_meas_analysis_2.png
  11. Using your mouse, select the point where the digital signal starts to rise. A green line appears. You can adjust the position of the line also using left and right arrows of your keyboard.
  12. Mark down the time after “t” (notice small t) for example in a spreadsheet. It is up to you do you want to mark down the full time in parentheses or just the time right after “t”. Just be consistent.
  13. Next, find the rise point of the analog signal and mark that in your spreadsheet.delay_meas_analysis_3.png
  14. Measure and calculate the difference for several (preferably at least for few tens) trigger-analog signal pairs.
  15. In this example, the time difference between the signals (for one event only) was 22ms. This should approximately be the delay of visual signals and the jitter is only 1 or 2ms. The jitter mostly seems to depend on the accuracy and consistency how you defined the rise point of the analog signal.
  16. When doing the delay measurement, you should run through your whole experiment and have delay measurements at least from beginning, middle and end of your paradigm. For example, in theory it is possible, that there could be some memory issues with longer paradigms in the stimulus computer. You can (and should if there are no real brains in the MEG simultaneously) reduce the saved .fif-file size by pausing the recording in the data acquisition computer.
  17. Defining the start time of analog signal accurately can be somewhat tricky. It helps, if the contrast is large in visual stimuli, for example use in delay measurement black vs white; when using audio stimuli increase the volume, although spoken or otherwise “natural” stimuli might still be difficult. Be consistent in how you mark the start point.