BOPSgui.m appears, then disappears and errors out

Provide a MATLAB based, user friendly and easy-to-use tool to perform batch process of the most commonly used OpenSim Tools (IK, ID, MA and SO).
POST REPLY
User avatar
Nicole Strah
Posts: 9
Joined: Mon Aug 29, 2016 2:40 pm

BOPSgui.m appears, then disappears and errors out

Post by Nicole Strah » Fri Mar 12, 2021 7:11 am

I am using a Macbook with Catalina (when I updated further, BOPS would not run), OpenSim 4.1, and MATLAB 2021a. I had the same following results or worse with MATLAB 2019b, 2020a, and 2020b.

I downloaded the BOPS-2.0, BOPS_TestData, and Data -- GUI Example folders and put them in my MATLAB folder. (Sidenote: should any of these be nested within another folder?) When I attempt to run BOPSgui.m, the GUI appears for one moment, then disappears and displays the following error messages:

Code: Select all

Warning: 'popupmenu' control requires a non-empty Character vector
Control will not be rendered until all of its parameter values are valid 
> In matlab.hg.internal.openfigLegacy (line 128)
In gui_mainfcn>local_openfig (line 286)
In gui_mainfcn (line 158)
In BOPSgui (line 72) 
Warning: 'popupmenu' control requires a non-empty Character vector
Control will not be rendered until all of its parameter values are valid 
> In matlab.hg.internal.openfigLegacy (line 128)
In gui_mainfcn>local_openfig (line 286)
In gui_mainfcn (line 158)
In BOPSgui (line 72) 
Warning: 'popupmenu' control requires a non-empty Character vector
Control will not be rendered until all of its parameter values are valid 
> In matlab.hg.internal.openfigLegacy (line 128)
In gui_mainfcn>local_openfig (line 286)
In gui_mainfcn (line 158)
In BOPSgui (line 72) 
Warning: 'popupmenu' control requires a non-empty Character vector
Control will not be rendered until all of its parameter values are valid 
> In matlab.hg.internal.openfigLegacy (line 128)
In gui_mainfcn>local_openfig (line 286)
In gui_mainfcn (line 158)
In BOPSgui (line 72) 
Warning: 'popupmenu' control requires a non-empty Character vector
Control will not be rendered until all of its parameter values are valid 
> In matlab.hg.internal.openfigLegacy (line 128)
In gui_mainfcn>local_openfig (line 286)
In gui_mainfcn (line 158)
In BOPSgui (line 72) 
Index exceeds the number of array elements (0).

Error in BOPSgui>BOPSgui_OpeningFcn (line 150)
selections.TamplateListID = handles.TamplateListID.String(handles.TamplateListID.Value);

Error in gui_mainfcn (line 220)
    feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});

Error in BOPSgui (line 72)
    gui_mainfcn(gui_State, varargin{:});
I have also tried running the program from the main.m file but have had similar issues.

Did I put my folders in the right place? Am I executing this file incorrectly? Do you have recommendations for which versions of OpenSim, MATLAB, and Mac OS I should be using? Do I need to have MOtoNMS downloaded and nested as well?

User avatar
Nicole Strah
Posts: 9
Joined: Mon Aug 29, 2016 2:40 pm

Re: BOPSgui.m appears, then disappears and errors out

Post by Nicole Strah » Sun Mar 14, 2021 2:07 pm

I found a temporary solution: access the GUI through the BOPSgui.fig file in the MATLAB tree. This will pull up the interactive applet. Unfortunately, the OpenSim model (Model_scaled.osim) is still not able to be selected, so I will make a different forum post addressing this.

POST REPLY