PDA

View Full Version : sample raw data import warnings


dweber
April 27th, 2006, 21:24
Running on

Linux dnlweber 2.6.15-1-686 #2 Mon Mar 6 15:27:08 UTC 2006 i686 GNU/Linux

with matlab
>> version
ans =
7.2.0.294 (R2006a)

trying to import the sample raw data, getting these warnings:


Warning: 'Channel Information Saved in: /data/matlab/brainstorm/Phantom/Sample_Raw/Mixed_channel'
exceeds MATLAB's maximum name length of 63 characters and has been truncated to
'Channel Information Saved in: /data/matlab/brainstorm/Phantom/S'.
> In bst_message_window at 158
In importdata at 1487
In importdata at 758
Warning: 'Data Saved in: /data/matlab/brainstorm/Phantom/Sample_Raw/Mixed_data'
exceeds MATLAB's maximum name length of 63 characters and has been truncated to
'Data Saved in: /data/matlab/brainstorm/Phantom/Sample_Raw/Mixed'.
> In bst_message_window at 158
In importdata at 1498
In importdata at 758

Type 'startup' to begin another BrainStorm Session

pantazis
April 28th, 2006, 18:33
I am not sure what caused this error, but I suspect you have used a very long directory that exceeded the 63 matlab character limit (see http://www.physiol.ox.ac.uk/Computing/Online_Documentation/Matlab/base/relnotes/ch110.html)

Are you using matlab 6.5 or 7? (I think matlab 7 does not have this problem)

Also, can you try using shorter directory paths and see if you still have this problem?

Best,
Dimitrios

dweber
April 28th, 2006, 19:16
As I said, I'm using v7 (R2006a)

I can't help it that my file system path is deep. The path should be a separate entity from the file name. That is,

[path, file, ext] = fileparts( fileIdentifier )

is all the elements of the data file location. Of course, when they are all put together, they might exceed 63 characters (or whatever).

I find it hard to believe this is a limit in matlab. Why would they do that?

Darren

felix
May 1st, 2006, 15:32
Hi Darren,

Which version of brainstorm are you using? It might be some older version, since the line numbers you got in this warning do not point to anything suspicious. Also, this 63 character limit applies only to variable names used in Matlab and not to pathlengths or filenames. If the error or warning occured in the message window (i.e. bst_message_window.m) then probably this would not impact your actual importation, but would only lead to a faulty display of information in the message window.
Were you able to import the data?

best,

Felix

dweber
May 1st, 2006, 18:12
I got the latest download from the brainstorm website.

felix
May 1st, 2006, 18:40
Do the warnings prevent you from importing the data? I would like
to find out if this is a problem of the BrainStorm message window or if this is actually stopping you from using BrainStorm?

best,

Felix

dweber
May 2nd, 2006, 12:21
I started to read the readme file and figure out how to import the data. I've run out of time to look at this stuff.

Darren