<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Michael,<br>
<br>
it might help if you set cfg.trialdef.eventtype = '?' and check
what triggervalues and -types FieldTrip actually detects. Maybe
the triggers are not saved as numeric values but as characters,
thus maybe you need to set eventvalue = '1' instead of =1?
FieldTrip can be sensitive to those kind of things. For example,
our BVA-files record triggers are stored as 'S 1', and you need
to add the two white spaces between the 'S' and the '1' when
defining cfg.trialdef.eventvalue, otherwise desired and actual
triggervalues do not match.<br>
<br>
Best,<br>
Jörn<br>
<br>
On 10/8/2013 5:50 PM, Epstein, Michael wrote:<br>
</div>
<blockquote
cite="mid:3E54C3C165B1F2428D0A866C8A04ADBD011246@nki-exchdb2"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
span.EmailStyle17
{font-family:"Calibri","sans-serif";
color:windowtext}
.MsoChpDefault
{}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
{}
-->
</style>
<div class="WordSection1">
<p class="MsoNormal">Hi all,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="text-autospace:none">I'm having a
problem defining triggers using ft_definetrial with ANT .cnt
files. Say I want to do a simple epoching around events with a
trigger code of 1 - when I put in
<span style="font-size:10.0pt; font-family:"Courier
New"; color:black">cfg.trialdef.eventvalue = 1;
</span>I get an error saying no trials are defined. However I
figured out that if I put in
<span style="font-size:10.0pt; font-family:"Courier
New"; color:black">cfg.trialdef.eventvalue =[</span><span
style="font-size:10.0pt; font-family:"Courier
New"; color:#A020F0">1</span><span
style="font-size:10.0pt; font-family:"Courier
New"; color:black"> char(0) char(0)]; </span>then it
works fine. The trigger files look totally normal, and other
programs don't seem to have this issue. Anyone else ever have
a problem like this?</p>
<p class="MsoNormal" style="text-autospace:none"> </p>
<p class="MsoNormal" style="text-autospace:none">Thanks,</p>
<p class="MsoNormal" style="text-autospace:none"> </p>
<p class="MsoNormal" style="text-autospace:none">-Michael <span
style="font-size:10.0pt; font-family:"Courier
New"; color:black">
</span><span style="font-size:12.0pt;
font-family:"Courier New""></span></p>
<p class="MsoNormal" style="text-autospace:none"><span
style="font-size:12.0pt; font-family:"Courier
New""> </span></p>
</div>
IMPORTANT NOTICE: This e-mail is meant only for the use of the
intended recipient. It may contain confidential information which
is legally privileged or otherwise protected by law. If you
received this e-mail in error or from someone who is not
authorized to send it to you, you are strictly prohibited from
reviewing, using, disseminating, distributing or copying the
e-mail. PLEASE NOTIFY US IMMEDIATELY OF THE ERROR BY RETURN E-MAIL
AND DELETE THIS MESSAGE FROM YOUR SYSTEM. Thank you for your
cooperation.
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fieldtrip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group
FieldTrip Development Team
P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands
Contact:
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:jm.horschig@donders.ru.nl">jm.horschig@donders.ru.nl</a>
Tel: +31-(0)24-36-68493
Web: <a class="moz-txt-link-freetext" href="http://www.ru.nl/donders">http://www.ru.nl/donders</a>
Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands</pre>
</body>
</html>