PDA

View Full Version : startup error


yguan
June 12th, 2007, 03:38
Dear Brainstormers,

I have downloaded the current version of BrainStorm, but I couldn't start.

Here is the error messages:

>> startup

Starting BrainStorm, watch for messages in Message Window . . .
??? Error using ==> isfield
Not enough input arguments.

Error in ==> uitools/private/prefutils>getFieldOptional at 57
existed = isfield(s, fMax);

Error in ==> uitools/private/prefutils at 11
[varargout{1:nargout}] = feval(varargin{:});

Error in ==> getpref at 77
retval = prefutils('getFieldOptional', Preferences, group);

Error in ==> startup at 199
if MatlabVersion > 7 & isempty(getpref('BrainStorm'))



The same message with
Matlab 7.0.4.352 (R14SP2)
Matlab 7.1.0.183 (R14SP3)
Matlab 7.4 (R2007a)

Thanks for your help

--
Romain

Sylvain
June 12th, 2007, 05:25
Hello,

possible cause: some confusion in the preferences of BrainStorm from an earlier version you had on your machine.

please try the following:

type brainstorm_reset at the Matlab prompt. this should flush all your previous database and let the newest version run properly.

please let me know how it goes.

yguan
June 12th, 2007, 07:00
no, with 'brainstorm_reset' I get the same message:

>> brainstorm_reset
Removes your existing preferences and default data, continue (y/n): y
??? Error using ==> isfield at 15
Not enough input arguments.

Error in ==> uitools/private/prefutils>getFieldOptional at 57
existed = isfield(s, fMax);

Error in ==> uitools/private/prefutils at 11
[varargout{1:nargout}] = feval(varargin{:});

Error in ==> ispref at 34
[Group,g_exists] = prefutils('getFieldOptional', Preferences, group);

Error in ==> brainstorm_reset at 62
if ~ispref('BrainStorm'),



thanks for your help

Sylvain
June 13th, 2007, 05:40
OK.

Please type getpref('BrainStorm') at the Matlab command prompt and let me know the outcome.

yguan
June 15th, 2007, 01:36
Dear sylvain,

The first problem is solved, I re-install Brainstorm and now, it's OK. I don't know why but in the first installation, many files and directory was created in my BrainStorm directory ...

I was in your formation last week at lyon. At this time, every thing was well, the sky was blue and BrainStorm was beautiful.
:)
But now we try to use BrainStorm with our datas.
When we whant Import a new Dataset in DataBase.
When we select a CTF format, Brainstorm see our dataset but can't read the files and crash immediately Matlab.
We try on the computer used during the formation, it doesn't work.
We try with datas used during the formation, it's work.
So we suppose that the difference come from the headers. We use 'ftp' and 'cp' command to import our datas. We saw that 'copyDS' was prefered.
Is it possible that headers crash Brainstorm ?
And how to correct that ?
Thanks for help

--
Romain

Sylvain
June 15th, 2007, 14:33
Hi Romain,

when preparing the training, we figured out with Francoise and Claude that some of the processed files from their system were problematic. Have you checked with them what kind of files you are trying to load in ? it seems there is something wrong indeed in the headers somewhere that we need to fix on your system, even though this does not occur on every file.

yguan
June 20th, 2007, 03:32
Sylvain,

With françoise, we try differents files, different environment (Windows, Linux), but always the same error when we import new dataset.

Here, the matlab-windows message:


??? Attempted to access other2ID(0); index must be a positive integer or logical.

Error in ==> ds2brainstorm at 769
other2ID(iother) = chan;

Error in ==> importdata at 2236
[Ftmp,Channel,imegsens,ieegsens,iothersens,irefsens ,grad_order_no,no_trials,filter,Time, Comment] = ...

??? Error using ==> importdata OK
Attempted to access other2ID(0); index must be a positive integer or logical.

??? Error while evaluating uicontrol Callback


Let me know what do you think about this.
Thanks

--
Romain

Sylvain
June 20th, 2007, 03:46
Hi Romain,

the best porocedure would be that you send me a short file as a sample of problematic behavior.

Thanks.

yguan
June 29th, 2007, 08:40
Hi Sylvain,

I made some modifications in BrainStorm file.
'ds2brainstorm.m'

l. 245, variable 'SensorName' is too small. In my dataset there are 2 others sensor s with 28 and 29 values.

l.773, I think is not 'iother' but 'iother2'

I can import my dataset like this.

--
Romain

Sylvain
June 29th, 2007, 09:23
Great !

It seems though that you were not running the lastest version of BST. Could you please check the attached version of ds2brainstorm and let me know whether things keep on working good ?

thanks !