<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>Hi Josh,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>FieldTrip is working based on sample numbers (resp. measurement time). Therefore, you need some way to convert the timestamps from E-Prime to sample numbers. The oxy3/4 file does have time information on the measurement start time, which you could use as an estimate for this (I am not sure right now if you get this information out via oxysoft2matlab, please check and if not I can add it and sent you an updated version of the script. In the meanwhile, take the information directly from Oxysoft). Together with the sample rate of the measurement, you then will get a more-or-less accurate mapping from E-Prime time stamps to measurement time. I am saying “more-or-less accurate”, because the measurement start time is the time you finished the Oxysoft measurement wizard, not necessarily the time of the first incoming sample. So, there might be some tens of milliseconds delay between the start of the measurement and the first sample of the measurement, thereby offsetting the triggers by that amount of time. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>In future, if you use E-Prime, best try to send triggers directly to Oxysoft, so that the events are inserted in the data stream directly. There are several ways possible for this, hardware or software based. If you want to know more, please mail me and I’ll forward the respective instructions.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>With best regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>Jörn<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'>PS: you can also read in the oxy3 or oxy4 files directly in FieldTrip using the common FT functions like ft_preprocessing. No need to go the route via .nirs-files.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><p class=MsoNormal><b><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:#255A9E;mso-fareast-language:NL'>--<o:p></o:p></span></b></p><p class=MsoNormal><b><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:#255A9E;mso-fareast-language:NL'>Jörn M. Horschig, PhD, </span></b><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:#626264;mso-fareast-language:NL'>Software Manager & Project Leader<o:p></o:p></span></p><p class=MsoNormal><span lang=NL style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:#626264;mso-fareast-language:NL'><a href="http://www.artinis.com/"><span lang=EN-US style='color:#626264'>Artinis Medical Systems</span></a></span><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:#626264;mso-fareast-language:NL'>  | +31 481 350 980 |  Skype: support.artinis<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><u><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:#2F5496'>Meet us at <a href="https://www.artinis.com/artscientific-2019"><span style='color:#2F5496'>Artscientific: 3<sup>rd</sup> Artinis symposium</span></a></span></u><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:#2F5496'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Verdana",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:#2F5496'><a href="http://artinis.us3.list-manage1.com/subscribe?u=6bef931b76193f0e3d1dfe654&id=550bfdab46"><span style='color:#2F5496'>Sign up for our NIRS newsletter</span></a><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"Verdana",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Verdana",sans-serif;color:#1F497D'>Or meet us at:</span><span lang=EN-US style='font-size:8.0pt;font-family:"Verdana",sans-serif;color:gray'> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Verdana",sans-serif;color:gray'>December 4-7, 2019 - 1st World Congress on Falls and Postural Stability 2019 (WCFPS) -Kuala Lumpur, Malaysia<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Verdana",sans-serif;color:gray'>January 22-25, 2020 – 72nd Annual National Vonference of Indian Psychiatric Society -  Kolkata, India<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Verdana",sans-serif;color:gray'>May 26-30, 2020 – American College of Sports Medicine (ACSM) – San Fransisco, USA<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Verdana",sans-serif;color:gray'>June 11-13, 2020 – Artscientific 2020 – Dalfsen, The Netherlands<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Verdana",sans-serif;color:gray'>July 1-3, 2020 – European Conference of Sport Science (ECSS) – Sevilla, Spain<o:p></o:p></span></p></div><p class=MsoNormal><span lang=EN-US style='mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span lang=EN-US>From:</span></b><span lang=EN-US> fieldtrip <fieldtrip-bounces@science.ru.nl> <b>On Behalf Of </b>Manning, Joshua<br><b>Sent:</b> Thursday, November 14, 2019 6:12 PM<br><b>To:</b> fieldtrip@science.ru.nl<br><b>Subject:</b> [FieldTrip] Adding external events to NIRS data<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal style='background:white'><span style='font-size:12.0pt;color:black'>Hi,<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:12.0pt;color:black'>I am working with a data set that has events/responses taken from EPrime. We did not have the triggers sent to Oxysoft. I converted the NIRS data using oxysoft2matlab. I have an excel file that has trial types stored as a string, onsets response, durations of responses, and amplitudes. I am having difficulty adding the events/responses to the .nirs file. What is the best way to add these events to the NIRS data for analysis?<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:12.0pt;color:black'>Thanks,<o:p></o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal style='background:white'><span style='font-size:12.0pt;color:black'>Josh<o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:12.0pt;color:black'><o:p> </o:p></span></p></div></div></body></html>