Or is it the order of operations? Does the _OpeningFcn get called before the _CreateFcn (for each control), or is it the other way around?
I think that the create functions get called before the opening function, and so the handles structure will be empty at that point. Note the general comment for the OpeningFcn
In fact, if you put breakpoints in the create functions and the opening function, then you should observe that the latter get called before the former.
Since you just want to update your controls with data that is initialized in the opening function, then just do so from there as
function ZenKinematics_OpeningFcn(hObject, eventdata, handles, varargin)
handles = guidata(hObject);
handles.anglenames = {'Knee','Ankle','Hip'};
guidata(hObject,handles);
set(handles.graphpop1,'String',handles.anglenames);
And just remove the equivalent set from the graphpop1 create function and you should be good to go.
I commented out the uiwait in your above code as I don't think that it was in the correct place (before the call to guidata) and am not sure what it's intent is.
Best Answer