help > RE: Error in the Specify 1st level - hemodyn
Aug 26, 2017  01:08 PM | Sungho Tak - Wellcome Trust Centre for Neuroimaging, UCL
RE: Error in the Specify 1st level - hemodyn
Dear Bahareh, 

It seems that original files, "spm_fnirs_specify1st_ui.m" and "spm_fnirs_get_ones_ui.m", in a directory of "/spm_fnirs" were not replaced by updated files.

Please check if original files in a directory of "/spm_fnirs" were replaced by new files - "updates_model_spec_codes.zip" that were attached to my previous message. 

Also, in the SPM for fNIRS toolbox, "Temporal Preprocessing" step should be performed before "Model Specification" step. 

Best wishes, 

Sungho 

PS: I think that you are using an older version of SPM for fNIRS toolbox. You could use the latest version of the toolbox as follows: 
(i) download the "spm_fnirs.zip" and unzip the file. 
(ii) download the "code_updates_r3.zip" which includes bug fixes, and unzip the file in the directory of "spm_fnirs". 
(iii) download the "updates_model_spec_codes.zip" attached to my previous message, and unzip the file in the directory of "spm_fnirs". 
Originally posted by BAHAREH BEHBOODI:
Dear Sungho,

Thanks for your quick response.
I have tried the updates codes that you gave me but still, have the same problem after trying to upload "multiple_conditions.mat" file.
Also, I tried to follow the steps for entering the experimental design instead of using "multiple_conditions.mat" and I got this error:

--------------------------------------------------------
Specify GLM-fNIRS for the 1st level analysis...
---------------------------------------------------------
Hemoglobin signal to be analysed: HbOHbR

Specify experimental design...
Reference to non-existent field 'K'.
Error in spm_fnirs_specify1st_ui (line 115)
Error in spm_fnirs>push_specify_Callback (line 75)
function push_specify_Callback(hObject, eventdata, handles)
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in spm_fnirs (line 25)
gui_mainfcn(gui_State, varargin{:});
Error in
@(hObject,eventdata)spm_fnirs('push_specify_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback

Your help would be really appreciated.

Bests,
Bahareh

Threaded View

TitleAuthorDate
Eidan Tzdaka Jan 5, 2017
Sungho Tak Feb 7, 2017
BAHAREH BEHBOODI Aug 25, 2017
Sungho Tak Aug 26, 2017
BAHAREH BEHBOODI Aug 26, 2017
RE: Error in the Specify 1st level - hemodyn
Sungho Tak Aug 26, 2017
Helen Carlson Sep 12, 2019