Error using ==> rest_Fix_Read_Write_Error at 64

Submitted by stefania on
Dear Sirs, I am new in using REST. When I try to calculate Functional Connectivity I obtain the error messages copied below and reported in the attached files. When I restart matlab and run rest_Fix_Read_Write_Error a dialog window suggests me to install spm and compile the mex files correctly according to http://en.wikibooks.org/wiki/SPM/Installation_on_64bit_Linux. I use windows7 32bit, matlab R2008a, REST_V1.7_120101 and spm8. Do you have any suggestion to give me? Reho and ALFF work properly. best regards stefania Exception occured. () Error using ==> rest_Fix_Read_Write_Error at 64 Meet error while fixing read write error. Please restart MATLAB, and run "rest_Fix_Read_Write_Error" before starting anything. 64#line, rest_Fix_Read_Write_Error, in "C:\Users\nicolosi.s\Downloads\REST_V1.7_120101\REST_V1.7_120101\rest_Fix_Read_Write_Error.m" 91#line, rest_WriteNiftiImage, in "C:\Users\nicolosi.s\Downloads\REST_V1.7_120101\REST_V1.7_120101\rest_WriteNiftiImage.m" 80#line, rest_writefile, in "C:\Users\nicolosi.s\Downloads\REST_V1.7_120101\REST_V1.7_120101\rest_writefile.m" 118#line, rest_SphereROI, in "C:\Users\nicolosi.s\Downloads\REST_V1.7_120101\REST_V1.7_120101\rest_SphereROI.m" 126#line, fc, in "C:\Users\nicolosi.s\Downloads\REST_V1.7_120101\REST_V1.7_120101\fc.m" 1349#line, btnComputeFC_Callback, in "C:\Users\nicolosi.s\Downloads\REST_V1.7_120101\REST_V1.7_120101\fc_gui.m" 96#line, gui_mainfcn, in "C:\Program Files\MATLAB\R2008a\toolbox\matlab\guide\gui_mainfcn.m" 37#line, fc_gui, in "C:\Users\nicolosi.s\Downloads\REST_V1.7_120101\REST_V1.7_120101\fc_gui.m"

YAN Chao-Gan

Thu, 01/19/2012 - 15:07

Hi! Before running "rest_Fix_Read_Write_Error", please ensure SPM8 is correctly installed and added in path with sub-folders. In addition, do not use "space" or any other special characters in your path of data.

legend_long

Sat, 01/28/2012 - 14:42

In reply to by YAN Chao-Gan

when I run the DPASFA,the same error showed in matlab.I have already check the SPM8 and sub-folders but I can't find any error in it.How to solve the problem?

Have you followed "Please restart MATLAB, and run "rest_Fix_Read_Write_Error" before starting anything." And what's the response? In addition, please do not use Chinese and special characters (even space) in the path.

I am not able to solve the problem. When I run rest_Fix_Read_Write_Error I obtain the following message: "Please install SPM5 (or above release) and compile the mex files correctly according to http://en.wikibooks.org/wiki/SPM/Installation_on_64bit_Linux". I'd like to know what is the way you solve it.

For "Please install SPM5 (or above release) and compile the mex files correctly according to http://en.wikibooks.org/wiki/SPM/Installation_on_64bit_Linux". Have you installed SPM? Does SPM work?

stefania

Thu, 02/02/2012 - 07:09

In reply to by YAN Chao-Gan

yes, I have installed spm8 and it works properly. I have tryed to install previous version of rest and dparsf but I obtain the same error message. I remember you that I work with windows7 32bit

Then what's the problem you encountered? If your SPM8 work properly, then you will not encounter: "run rest_Fix_Read_Write_Error I obtain the following message: "Please install SPM5 (or above release) and compile the mex files correctly according to http://en.wikibooks.org/wiki/SPM/Installation_on_64bit_Linux".". In addition, please do not any special characters (even space) in your data path.

stefania

Fri, 02/03/2012 - 08:16

In reply to by YAN Chao-Gan

I don't know what is the problem. The strange thing is that ReHo and ALFF works properly too. I obtain the cited error message only when I run Functional Connetivity

Hi! This error occurs when writing the ROI file to temp dir with your username (There is a dot "." in your user name). Please download the new rest_SphereROI.m and replace the original one. Then they will work properly. http://pub.restfmri.net/index.php?dir=&file=rest_SphereROI.m
Forums