Menu

A problem

Help
ZhangWei
2016-04-16
2016-04-27
  • ZhangWei

    ZhangWei - 2016-04-16
     
    • ZhangWei

      ZhangWei - 2016-04-16

      I download the PSPM of v3.0.2 from Sourceforge. My matlab version is R2015b-64bit. At first, I setted the path of Pspm. Then I started to use the Pspm with running the pspm.m in the V3.0.2 file. Then the red window showed up. But when I click the 'import' icon, some error appeared in the Matlab command line. What's wrong with it? Do I need some plug-in?

       
  • Dominik Bach

    Dominik Bach - 2016-04-17

    Hi

    could you send us the text of the error message?

    Thanks
    Dominik

     
    • ZhangWei

      ZhangWei - 2016-04-18

      Thank you for your reply. I have some difficulty in upload the attachment. So I just paste the error message in matlab below.I have redownload the Pspm zip. The cause should not be corruption of the file, I think.

      "
      One or more output arguments not assigned during call to "varargout".

      Error in cfg_add_module (line 9)
      mod_job_id = cfg_util('addtojob', cjob, mod_cfg_id);

      Error in pspm>Import_data_Callback (line 104)
      cfg_add_module('pspm.prep.import');

      Error in gui_mainfcn (line 95)
      feval(varargin{:});

      Error in pspm (line 55)
      gui_mainfcn(gui_State, varargin{:});

      Error in
      matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)pspm('Import_data_Callback',hObject,eventdata,guidata(hObject))
      Error while evaluating UIControl Callback
      "
      Your bests.
      Zhang Wei

       
  • tobias moser

    tobias moser - 2016-04-19

    Hi Zhang Wei

    cfg_add_module is a function of matlabbatch which is incorporated in PsPM. This error indicates to me that there is another version of matlabbatch on the matlab path and PsPM wrongly calls the function in the other path. This is likely to happen when you are using other projects which incorporate matlabbatch as well (e.g. SPM). In order to run PsPM properly you have to remove all other versions of matlabbatch from the path or ensure that PsPM calls the function in the correct path.

    If you want to find out from which path a function is taken, you can call 'which cfg_add_module' in the command line. The path returned should match the path where your PsPM is stored.

    best regards
    Tobias

     
  • ZhangWei

    ZhangWei - 2016-04-20

    Hi Tobias,
    Thank you for your advice!
    To make clear from commend line message, I use bold fonts for my description.
    Firstly, I delete the path which contains the PSPM folder. Then I call 'which cfg_add_module' in the command line.

    which cfg_add_module
    'cfg_add_module' not found.

    This result might show that there is not any function named "cfg_add_module". Then I reset the path of Pspm with subfolder and saved. Then I ran the pspm.m script. In the following, there were some warnings related to the problem, maybe.

    Welcome to PsPM - PsychoPhysiological Modelling
    (incorporating SCRalyze)
    Version 3.0.2 (01.12.2015)


    (c) 2008-2015
    Dominik R Bach
    * Wellcome Trust Centre for Neuroimaging
    University College London
    University of Zurich
    d.bach@ucl.ac.uk
    pspm.sourceforge.net


    This program is free software: you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by the Free
    Software Foundation, either version 3 of the License, or (at your option)
    any later version.

    This program is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
    more details.

    You should have received a copy of the GNU General Public License along
    with this program. If not, see http://www.gnu.org/licenses/.


    PsPM: loading defaults ...
    Warning: You are using Matlab version 2014b or later. Review display of non-linear models using VBA may not
    work.

    In scr_init (line 64)
    In pspm>PsPM_OpeningFcn (line 66)
    In gui_mainfcn (line 220)
    In pspm (line 55)
    Failed to load E:\toolbox\pspm\v3.0.2\scr_cfg\cfg_mlbatch_appcfg.m
    Operands to the || and && operators must be convertible to logical scalar values.
    In file "E:\toolbox\pspm\v3.0.2\matlabbatch\@cfg_branch\subsasgn_check.m" (v701), function "subsasgn_check" at line 22.
    In file "E:\toolbox\pspm\v3.0.2\matlabbatch\@cfg_branch\subsasgn.m" (v701), function "subsasgn" at line 80.
    In file "E:\toolbox\pspm\v3.0.2\scr_cfg\scr_cfg_import.m" (v701), function "scr_cfg_import" at line 68.
    In file "E:\toolbox\pspm\v3.0.2\scr_cfg\scr_cfg_preparation.m" (v701), function "scr_cfg_preparation" at line 13.
    In file "E:\toolbox\pspm\v3.0.2\scr_cfg\scr_cfg.m" (v701), function "scr_cfg" at line 11.
    In file "E:\toolbox\pspm\v3.0.2\scr_cfg\cfg_mlbatch_appcfg.m" (???), function "cfg_mlbatch_appcfg" at line 17.
    In file "E:\toolbox\pspm\v3.0.2\matlabbatch\cfg_util.m" (v701), function "local_initapps" at line 1345.
    In file "E:\toolbox\pspm\v3.0.2\matlabbatch\cfg_util.m" (v701), function "cfg_util" at line 649.
    In file "e:\toolbox\pspm\v3.0.2\pspm.m" (v701), function "PsPM_OpeningFcn" at line 67.
    In file "D:\Matlab2015b\toolbox\matlab\guide\gui_mainfcn.m" (???), function "gui_mainfcn" at line 220.
    In file "e:\toolbox\pspm\v3.0.2\pspm.m" (v701), function "pspm" at line 55.

    Finally, I clicked the icon "import" in the red window. The same error happened again.

    One or more output arguments not assigned during call to "varargout".

    Error in cfg_add_module (line 9)
    mod_job_id = cfg_util('addtojob', cjob, mod_cfg_id);

    Error in pspm>Import_data_Callback (line 104)
    cfg_add_module('pspm.prep.import');

    Error in gui_mainfcn (line 95)
    feval(varargin{:});

    Error in pspm (line 55)
    gui_mainfcn(gui_State, varargin{:});

    Error in
    matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)pspm('Import_data_Callback',hObject,eventdata,guidata(hObject))
    Error while evaluating UIControl Callback

    Please help me again. Thank you again.
    Bests.
    Zhang Wei

     
  • tobias moser

    tobias moser - 2016-04-25

    Hi Wei

    I think the error you get when clicking 'Import' is related to the errors you get during the initialisation of PsPM. I'm trying to reproduce these errors with the same Matlab and the same PsPM version but for me it works fine (unfortunately). Could you send me the content of the file scr_cfg_import.m? If you have troubles with attachments, just send the file as plain text until line 70 (this should be fine).
    Could you also send me the output of the command 'path' ?

    Concerning adding PsPM to the path: We usually recommend just to add the folder PsPM to the path (without its subfolders). There should be a warning related to that (which I don't find in your output). But still, I don't think this causes the problem, but maybe you could try to change that as well.

    best regards
    Tobias

     
  • ZhangWei

    ZhangWei - 2016-04-27

    Dear Tobias,
    AAAAmazing! As followed your advice, I set path with "Add Folder" instead of "Add with folders" . I ran the pspm.m, then "import". The "Batch editor" window successly popped up! So I can learn to analysis the data step by step now.
    Thank you for your patience very very much!

    Bests,
    Zhang Wei

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.