Dear Myriam,

You should use the function spm_eeg_ft2spm from the command line with your timelock data as input rather than standard SPM conversion on a mat file. See spm_ft_multimodal_preprocessing.m in man/example_scripts for an example.

Best,

Vladimir

On Wed, Oct 1, 2014 at 8:29 AM, Myriam Hansel <[log in to unmask]> wrote:
Dear Dr. Litvak,

I am a phd student of Dr. James Kilner.

I have problem converting MEG data from fieltrip format to SPM8 format. I have already converted time frequency fieldtrip data without having any problem. I am now trying to convert data after running on it the ft_timelockanalysis function in fieldtrip. I get the following output error:
SPM8: spm_eeg_convert_ui (v3059)                   10:17:07 - 01/10/2014
========================================================================

SPM8: spm_eeg_channelselection (v2866)             10:17:21 - 01/10/2014
========================================================================
??? Error using ==> hastoolbox at 348
the BIOSIG toolbox is not installed, see http://biosig.sourceforge.net

Error in ==> read_header at 1438
    if strcmp(fallback, 'biosig') && hastoolbox('BIOSIG', 1)

Error in ==> fileio_read_header at 11
[varargout{1:nargout}] = funhandle(varargin{:});

Error in ==> spm_eeg_channelselection at 48
hdr = fileio_read_header(S.dataset, 'fallback', 'biosig', 'headerformat',
S.inputformat);

Error in ==> spm_eeg_convert_ui at 73
    S = spm_eeg_channelselection(S);
 
??? Error while evaluating uicontrol Callback

I added the BIOSIG toolbox to the path, but then the SPM GUI didn't work.

Do you know what I should do?

Thanks a lot

Myriam