help > error with setup conditions
Showing 1-2 of 2 posts
Display:
Results per page:
Oct 30, 2025  10:10 PM | Hillary Patton
error with setup conditions

Hello,


I keep getting this error code when I select any of my subjects in the 'conditions' tab under setup and I'm not quite sure what to do: 


 


Attempt to execute SCRIPT spm_hrf as a function:
/data/project/lahtilab/toolboxes/spm12/spm_hrf.m


Error in conn_convertcondition2covariate (line 44)
 hrf=spm_hrf(rt);


Error in conn (line 4510)
 out=conn_convertcondition2covariate('-DONOTAPPLYSUBJECTS',tnsubs,1:numel(CONN_x.Setup.conditions.names)-1);


Error in conn (line 2135)
 [varargout{1:nargout}]=conn('gui_setup',varargin{3:end});


Error in conn_menumanager (line 125)
 feval(CONN_MM.MENU{n0}.callback{n1}{1},CONN_MM.MENU{n0}.callback{n1}{2:end}); 
CONN22.v2407
SPM12
Matlab v.2018a
project: CONN22.v2407
storage: 186410.1Gb available

Nov 4, 2025  12:11 PM | Alfonso Nieto-Castanon - Boston University
RE: error with setup conditions

Hi Hillary,


That points to a problem in your SPM installation (the file spm_hrf.m may be empty or corrupted). I would suggest re-installing SPM (see https://web.conn-toolbox.org/resources/c... for details) to see if that fixes this issue.


Hope this helps


Alfonso


Originally posted by Hillary Patton :



Hello,


I keep getting this error code when I select any of my subjects in the 'conditions' tab under setup and I'm not quite sure what to do: 


 


Attempt to execute SCRIPT spm_hrf as a function:
/data/project/lahtilab/toolboxes/spm12/spm_hrf.m


Error in conn_convertcondition2covariate (line 44)
 hrf=spm_hrf(rt);


Error in conn (line 4510)
 out=conn_convertcondition2covariate('-DONOTAPPLYSUBJECTS',tnsubs,1:numel(CONN_x.Setup.conditions.names)-1);


Error in conn (line 2135)
 [varargout{1:nargout}]=conn('gui_setup',varargin{3:end});


Error in conn_menumanager (line 125)
 feval(CONN_MM.MENU{n0}.callback{n1}{1},CONN_MM.MENU{n0}.callback{n1}{2:end}); 
CONN22.v2407
SPM12
Matlab v.2018a
project: CONN22.v2407
storage: 186410.1Gb available