Hi Markus,
Sounds very strange. Are you sure there is nothing besides SPM in your
path that can interfere? If you can't figure it out, I'll come by to
look at it.
Vladimir
On 9 Mar 2010, at 21:32, Markus Bauer wrote:
> Hi
>
> I have a problem when doing MEG (CTF) raw to SPM conversion
> ('spm_eeg_convert') in the batch mode - not when doing with the GUI.
>
> The problem occurs in line 735 in 'read_header' in the external/
> fileio/private directory:
> orig = readCTFds(filename);
>
> even though the 'filename' is identical (as well as everything else):
> when running in batch mode I get an empty header ('orig') back, in
> the GUI mode there is no problem...
>
> Any idea?? I first start spm regularly and switch to MEEG, so all
> paths etc are set...
> This problem occurs both with the very latest as well as the
> official SPM8 version
>
> thanks
> Markus
>
> here the code I use:
>
> cfg.rootpathname = [experimentdir,directories{j}];
> spmcfg.dataset =
> [cfg
> .rootpathname
> ,sessionfilenames
> {j},'0',num2str(i),'.ds/',sessionfilenames{j},'0',num2str(i),'.meg4'];
> spmcfg.outfile = [cfg.rootpathname,'/
> spm8_',sessionfilenames{j},'0',num2str(i)];
> spmcfg.continuous = 1;
> spmcfg.checkboundary = 0;
> spmcfg.channels = {'all'};
> spmcfg.inputformat = [];
> spmcfg.blocksize = 3276800;
> spmcfg.usetrials = 1;
> spmcfg.datatype = 'float32-le';
> spmcfg.eventpadding = 0;
> spmcfg.saveorigheader = 0;
> spmcfg.conditionlabel = {'Undefined'};
> D = spm_eeg_convert(spmcfg);
|