<div dir="ltr"><div><div><div><div><div>Hey JM,<br><br></div>I just handed Andreas some code to read in the data to MATLAB using the openNSx.m (for importing continuous raw data) and openNEV (for spikes and event codes), and then a Fieldtrip data structure can be created by hand relative to events of interest or for the whole length of the session.<br><br></div>I know this is probably not the ideal solution from a FT development point of view, but it's working for us which means also limited urgency to change.<br><br></div>I would be able to eventually work towards a more aesthetically pleasing solution, especially if Andreas can help!<br><br></div>Cheers,<br></div>Andre<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 2, 2016 at 1:55 AM, Schoffelen, J.M. (Jan Mathijs) <span dir="ltr"><<a href="mailto:jan.schoffelen@donders.ru.nl" target="_blank">jan.schoffelen@donders.ru.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
Hi Andreas,
<div><br>
</div>
<div>At this moment the code that uses the NPMK toolbox for fileio is not yet functional. I have started working on this a bit, but did not have time (and urgency) to complete this yet.</div>
<div>The neuroshare code is based on very outdated (windows support only) mex-code, and it does not surprise me that it does not work for you.</div>
<div><br>
</div>
<div>If you specify ‘headerformat’ and ‘dataformat’ to be ‘blackrock_nsx’ the code should take the correct turn, and end up at a portion of the m-file that is calling the NPMK functions.</div>
<div>However, you will hit a keyboard statement right away, so you would need to provide some additional code, that is reformatting the output of the lower-level NPMK function into the shape that FieldTrip can work with. I think you could get some inspiration
from the documentation about the support for different data formats as well as some examples from the various dataformats as implemented in ft_read_data. If you can provide me with some functional code, I will be happy to plug it into the release version of
FieldTrip. I also suggest you to create an account on our bugzilla server: <a href="http://bugzilla.fieldtriptoolbox.org" target="_blank">
bugzilla.fieldtriptoolbox.org</a>, and assign yourself to the CC-list of bug 2964. Any progress you make, code suggestions, as well as questions regarding to the implementation of this dataformat can be posted here.</div>
<div><br>
</div>
<div>Since I don’t have dedicated time to work on this right now, the easiest way forward would be if you investigate a bit more yourself and come up with good suggestions. This will expedite the process greatly.</div>
<div><br>
</div>
<div>Thanks, and best wishes,</div>
<div><br>
</div>
<div>Jan-Mathijs</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div><div><div class="h5">
<div>On Feb 1, 2016, at 11:36 PM, Andreas Gerhard Wutz <<a href="mailto:andreas.wutz-1@unitn.it" target="_blank">andreas.wutz-1@unitn.it</a>> wrote:</div>
<br>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Dear Fieldtrip community,
<div><br>
</div>
<div>I am trying to read in LFP data from a blackrock system. I started out with the sample code provided here:
<a href="http://www.fieldtriptoolbox.org/getting_started/blackrock" target="_blank">http://www.fieldtriptoolbox.org/getting_started/blackrock</a></div>
<div><br>
</div>
<div>I use Windows 7 (64-bit), Matlab 2011b (32-bit), downloaded and installed the latest version of Fieldtrip (20160128) and of the NPMK toolbox. </div>
<div><br>
</div>
<div>Unfortunately, I didn't come very far. </div>
<div>Here is my code: </div>
<div><br>
</div>
<div><span>filename = </span>'my_data.ns2'<span>;</span></div>
<div>data = ft_read_data(filename, <span>'headerformat'</span>, <span>
'neuroshare'</span>);</div>
<div><br>
</div>
<div>Immediately exits with the following error message: </div>
<div>"Invalid MEX-file" pointing to "fieldtrip/external/neuroshare/mexprog.dll": The specified procedure could not be found. </div>
<div><br>
</div>
<div>Error in ns_SetLibrary (line 39)</div>
<div>Error in read_neuroshare (line 82)</div>
<div>Error in ft_read_header (line 2056)</div>
<div>Error in ft_read_data (line 197)</div>
<div><br>
</div>
<div>What options do I have to get this going?</div>
<div>Thank you very much for your help.</div>
<div>Best,</div>
<div>Andreas</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div><br>
</div>
-- <br>
<div>
<div dir="ltr">
<div>
<div>
<div>Andreas Wutz, PhD<br>
</div>
Post-doctoral researcher <br>
Center for Mind/Brain Sciences (CiMeC)<br>
</div>
University of Trento<br>
</div>
Rovereto, Italy<br>
</div>
</div>
</div>
</div></div></div>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl" target="_blank">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></blockquote>
</div>
<br>
</div>
</div>
<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br></div>