help > error in the Specify 1st level - hemodynamic
Showing 1-7 of 7 posts
Display:
Results per page:
Jan 5, 2017  11:01 AM | Eidan Tzdaka - HIT
error in the Specify 1st level - hemodynamic
Hello,
my name is Eidan and I have an error in the Specify 1st level - hemodynamic basis function.
Every time I select on of them I got this error:

Reference to non-existent field 'cutoff'.
Error in spm_fnirs_specify1st_ui (line 215)
Hstr = sprintf('Cutoff: %d {s}',P.K.H.cutoff);
Error in spm_fnirs>push_specify_Callback (line 75)
spm_fnirs_specify1st_ui;
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
anyone know what to do in this situation?
hope you guys can help.
Eidan.
Feb 7, 2017  12:02 PM | Sungho Tak - Wellcome Trust Centre for Neuroimaging, UCL
RE: error in the Specify 1st level - hemodynamic
Dear Eidan, 

I am sorry for the late reply. 

The error can occur when DCT-based detrending is not selected in the temporal preprocessing step. 

The bug has been fixed. Please use the attached file. 

Best wishes, 

Sungho 
Originally posted by Eidan Tzdaka:
Hello,
my name is Eidan and I have an error in the Specify 1st level - hemodynamic basis function.
Every time I select on of them I got this error:

Reference to non-existent field 'cutoff'.
Error in spm_fnirs_specify1st_ui (line 215)
Hstr = sprintf('Cutoff: %d {s}',P.K.H.cutoff);
Error in spm_fnirs>push_specify_Callback (line 75)
spm_fnirs_specify1st_ui;
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
anyone know what to do in this situation?
hope you guys can help.
Eidan.
Aug 25, 2017  11:08 AM | BAHAREH BEHBOODI - Ms.
Error in the Specify 1st level - hemodyn
Dear Sungho,

Thanks for your useful toolbox.

I have tried to use your sample_fnirs data and follow the tutorials step for spm-fnirs.
While trying to do "Specify 1st Level", after selecting "multiple_conditions" I faced this error:

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

Specify experimental design...
Completed.
Specify other regressors...
Error using uicontrol
While setting the 'Max' property of UIControl:
Value must be numeric or logical.
Error in spm_input (line 1286)
h = uicontrol(Finter,'Style','Pushbutton',...
Error in spm_fnirs_specify1st_ui (line 150)
spm_input('Other regressors (eg, systemic confounds)',1,'d');
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

I have checked that only the path for "spm12" exists in my MATLAB.
I would appreciate if you help me to find the problem.

Thanks for your time.

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

Similar GUI issues were reported: https://www.nitrc.org/forum/forum.php?thread_id=5895&forum_id=5530. 

Please use the attached codes.

If the same error occurs, please let me know. 

Best wishes, 

Sungho 
Originally posted by BAHAREH BEHBOODI:
Dear Sungho,

Thanks for your useful toolbox.

I have tried to use your sample_fnirs data and follow the tutorials step for spm-fnirs.
While trying to do "Specify 1st Level", after selecting "multiple_conditions" I faced this error:

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

Specify experimental design...
Completed.
Specify other regressors...
Error using uicontrol
While setting the 'Max' property of UIControl:
Value must be numeric or logical.
Error in spm_input (line 1286)
h = uicontrol(Finter,'Style','Pushbutton',...
Error in spm_fnirs_specify1st_ui (line 150)
spm_input('Other regressors (eg, systemic confounds)',1,'d');
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

I have checked that only the path for "spm12" exists in my MATLAB.
I would appreciate if you help me to find the problem.

Thanks for your time.

Bahareh
Aug 26, 2017  11:08 AM | BAHAREH BEHBOODI - Ms.
RE: Error in the Specify 1st level - hemodyn
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
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
Sep 12, 2019  09:09 PM | Helen Carlson
RE: Error in the Specify 1st level - hemodyn
Hello
Can you please make the file "updates_model_spec_codes.zip" available? I am getting this same error as previously documented (Reference to non-existent field 'K') when trying to create a new first-level model.
Thank-you
Helen