Can't read .SMR data into FT

Vladimir Litvak v.litvak at ION.UCL.AC.UK
Thu Sep 9 16:13:23 CEST 2010


Dear Eduardo,

The version of Neuroshare included in Fieldtrip should be sufficient
although I'm not sure whether it's added automatically to the path.
One additional thing you might need is the DLL from CED that can be
found at:

http://www.ced.co.uk/upnssonu.shtml

You can put it in the neuroshare directory. Note that this setup
doesn't support SMR files from recent versions of Spike 2 (6 and up).
For these versions you can export the data into mat files and these
files are supported by fileio.

Best,

Vladimir



On Wed, Sep 8, 2010 at 6:22 PM, Eduardo Garza <egarza at gmail.com> wrote:
> Greetings,
> I did an EEG experiment using CED and the format is standard ".SMR".
> The data contains 1 Channel (Cz) and 1 Event Channel.
> When I try to look at the data in FT using:
> cfg = [];
> cfg.dataset = 'eduardo_pilot_03_events2.smr';
> cfg.trialdef.eventtype  = '?';
> definetrial(cfg);
> I get several errors back:
> Warning: Unable to load this DLL
> Call ns_SetLibrary first! Process interrupted!
> ??? Error using ==> read_ced_son at 81
> Could not get NeuroShare library info, please use the NS_SETLIBRARY
> function.
> Error in ==> ft_read_header at 357
>     orig = read_ced_son(filename,'readevents','no','readdata','no');
> Error in ==> read_header at 17
> [varargout{1:nargout}] = funhandle(varargin{:});
> Error in ==> trialfun_general at 50
> hdr = read_header(cfg.headerfile);
> Error in ==> ft_definetrial at 110
>     [trl, event] = feval(cfg.trialfun, cfg);
> Error in ==> definetrial at 17
> [varargout{1:nargout}] = funhandle(varargin{:});
> I checked the "read_ced_son.m" and apparently I need a Neuroshare library to
> read the data (I thought FT already had that in).
> So I go to the Neuroshare site and download a ZIP called
> MATLAB_Import_Filter, which apparently should include several ".m" files and
> 1 DLL called "mexprog.dll" for 64-bits, but the DLL is not there.
> The readme.txt shows that I should also include a file called
> "NeuroshareDLL" in the same directory.
> I'm not sure where to go from here.
> Where can I get that NeuroshareDLL and mexprog.dll that should go into the
> directory?
> Is my data in the correct format?
> Thank you
> Best regards
> Eduardo
> --
> Eduardo A. Garza Villarreal
> MD, PhD Student
>
> -Center for Functionally Integrative Neuroscience (CFIN), Aarhus University;
> -Royal Academy of Music, Aarhus, Denmark;
> -Department of Psychiatry, Warneford Hospital, University of Oxford, UK.
>
> DK Office:   +45 89494408
> DK Mobile:  +45 2772 3440
>
> UK Office:   +44 1865223918
> UK Mobile   +44 7879574135
>
> http://person.au.dk/eduardo.garza@ki
> http://www.cfin.au.dk/menu550-en
>
> egarza at gmail.com
> eduardo at pet.auh.dk
> eduardo.garzavillarreal at psych.ac.ox.uk
>
> ----------------------------------
>
> The aim of this list is to facilitate the discussion between users of the
> FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and
> EEG analysis.
>
> http://listserv.surfnet.nl/archives/fieldtrip.html
>
> http://www.ru.nl/fcdonders/fieldtrip/

----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/neuroimaging/fieldtrip.



More information about the fieldtrip mailing list