default neuromag fif reader changed

Robert Oostenveld r.oostenveld at FCDONDERS.RU.NL
Mon Mar 2 11:56:26 CET 2009

Dear neuromag+fieldtrip users,

I have changed the default reading functions for Neuromag *.fif data.
Instead of calling the mex files, it now relies on the Matlab
functions from the MNE toolbox.

It used to be that the meg-pd mex functions were called on continuous
data. These mex functions turned out to be quite problematic on a
variety of matlab versions and operating systems. An alternative and
pure-matlab (i.e. no compiled mex files) implementation for reading
data from fif files has been made available by Matti Hamalainen.
Laurence Hunt from Oxford has been working on getting these functions
implemented in FieldTrip as alternative to the mex file dependencies.
The functions from the MNE toolbox themselves are not incldued in the
FieldTrip release, because the MNE license does not allow that. You
should download the MNE toolbox yourself and install it under
fieldtrip/external/mne or somewhere else and add it to your matlab path.

If you want to continue using the mex files in fieldtrip/preprocessing
you can specify cfg.dataformat and cfg.headerformat fields. You can
specify either 'neuromag_mex' or 'neuromag_mne' to pick the low-level
reading functions of your choise. The auto-detected default value for
the data and headerformat of 'neuromag_fif' will use the MNE functions.

See and
  for details on the two external dependencies that FieldTrip has for
reading Neuromag fif data.

best regards,

Robert Oostenveld
Senior Researcher
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
tel.: +31 (0)24 3619695
e-mail: r.oostenveld at
skype: r.oostenveld

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 and

More information about the fieldtrip mailing list