Print

Print


Dear Sheena,

SPM does not use the trigger channel for epoching. It's only read during conversion but not after so overwriting it will have no effect. If you want to do custom epoching I suggest you generate a trial definition mat file. The format is described in the manual (search for trl).

Best,

Vladimir

> On 3 Aug 2015, at 23:12, Sheena Waters <[log in to unmask]> wrote:
> 
> Dear Vladimir:
> 
> I am very sorry to bother you but was wondering if you might be able to assist me with a problem I'm having with SPM epoching / rewriting MEG triggers?  
> 
> I have written new MEG triggers (i.e. to the UPPT001 channel) to coincide with my ADC channels to get adjusted timings.  Subsequently, I ran SPM epoching using the old trigger values and the new ones but found that, for the latter, SPM did not do any epoching (there was no error message--the epoching was simply not performed for the new trigger values).  When I load the structure in SPM, the new triggers are there (they just are written at only 1 timestamp--and do not extend across a few like the original triggers in UPPT001).  
> 
> I write new triggers by doing the following:
> D(TiggerChannel, NewIndex) = NewValue,
> where 
> D                      =  MEG structure
> TriggerChannel  =   MEG trigger channel (UPPT001)
> NewIndex          =   the index for the correct timestamp to write the new trigger to
> NewValue          =   the value of the new trigger
> 
> When I run this, the dat file is updated (but not the mat file) and the new values are there when I reload the data and look at UPPT001.
> 
> Any advice would be most appreciated.  
> 
> Thank you so much for your time.  
> 
> Best wishes,
> Sheena Waters
>