<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><P>Hi Sylvia,</P>
<P> </P>
<P>What values exactly do you get for the 'trial' and 'trigger' event types? If, for instance, you have the values 1 and 2 (e.g. for conditions 1 and 2 respectively) for the 'trigger' event type, you can specifically read condition 1 by using:</P>
<P> </P>
<P>cfg.trialdef.eventtype = 'trigger';</P>
<P>cfg.trialdef.eventvalue = 1; </P>
<P> </P>
<P>and more generally</P>
<P>cfg.trialdef.prestim = 1; % one second before trigger with value 1<BR>cfg.trialdef.poststim = 2; % two seconds after trigger with value 1<BR></P>
<P>Hope this solves your problem?</P>
<P>Arjen<BR></P>
<P>
<HR id=zwchr>
</P>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><B>Van: </B>"S Guillory" <sguillor@ucla.edu><BR><B>Aan: </B>fieldtrip@donders.ru.nl<BR><B>Verzonden: </B>Dinsdag 17 juli 2012 20:18:24<BR><B>Onderwerp: </B>[FieldTrip] errors with ft_definetrial<BR><BR>
<DIV>Hello,</DIV>
<DIV><BR></DIV>
<DIV> I'm trying to timelock to a specific event in an epoch and I'm having some difficulty setting it up in matlab. When not specifying an event, i.e. using '?', it identifies two types of events 'trial' and 'trigger' as well as the values. The problem I'm having is that there are two different triggers per trial and I am interested in only one of them, however when I specify cfg.trialdef.eventtype = 'trigger' and the cfg.trialdef.eventvalue = 'triggername', I get an error that no trials were defined. Is there a way to isolate the specific trigger without having to code a trial function. Thank you in advance for your time.</DIV>
<DIV><BR></DIV>
<DIV> -Sylvia</DIV><BR>_______________________________________________<BR>fieldtrip mailing list<BR>fieldtrip@donders.ru.nl<BR>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</BLOCKQUOTE><BR></div></body></html>