Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
faq:triggers [2018/10/21 14:56]
42.49.180.224 [How can I check or decipher the sequence of triggers in my data?]
faq:triggers [2017/09/21 10:08] (current)
130.229.13.128 [Elekta Neuromag]
Line 3: Line 3:
 ===== How can I check or decipher the sequence of triggers in my data? ===== ===== How can I check or decipher the sequence of triggers in my data? =====
  
-Triggers, stimuli, responses, annotations,​ etcetera in the recording are in FieldTrip jointly represented as "events&​quot; ​and read from the dataset using **[[:​reference:​ft_read_event]]**. The following code demonstrates how you can do a visual check of the triggers and export them to an excel file.+Triggers, stimuli, responses, annotations,​ etcetera in the recording are in FieldTrip jointly represented as "events" ​and read from the dataset using **[[:​reference:​ft_read_event]]**. The following code demonstrates how you can do a visual check of the triggers and export them to an excel file.
  
 We start by reading the header (which we need for the sampling frequency) and the events. In case of NeuroMag *.fif data that was recorded with internal active shielding (IAS) and that has not been maxfiltered yet, you can disable the check for maxfilter. ​ We start by reading the header (which we need for the sampling frequency) and the events. In case of NeuroMag *.fif data that was recorded with internal active shielding (IAS) and that has not been maxfiltered yet, you can disable the check for maxfilter. ​
Line 10: Line 10:
   event = ft_read_event(dataset,​ '​checkmaxfilter',​ '​no'​);​   event = ft_read_event(dataset,​ '​checkmaxfilter',​ '​no'​);​
  
-The "event&​quot; ​variable is a structure array, in which each element represent one event.+The "event" ​variable is a structure array, in which each element represent one event.
  
-  ​&​gt;&​gt; ​event+  ​>> ​event
   ​   ​
   event =    event = 
Line 36: Line 36:
  
 The visual inspection of the figure shows you the overall structure of the events in the recording. Often it allows you to decipher part of the experimental design. The visual inspection of the figure shows you the overall structure of the events in the recording. Often it allows you to decipher part of the experimental design.
 +
 ==== Elekta Neuromag ==== ==== Elekta Neuromag ====
  
Line 69: Line 70:
  
 Note that the event type "​Trigger"​ replicates the event type "​STI101"​. We recommend that you use STI101 for consistency with Elekta and MNE software. Note that the event type "​Trigger"​ replicates the event type "​STI101"​. We recommend that you use STI101 for consistency with Elekta and MNE software.
 +