JaneliaSciComp / G4_Display_Tools

Collection of tools for the G4 LED arena displays.
Creative Commons Attribution 4.0 International
2 stars 2 forks source link

Error when not loading pattern step size from file #99

Closed floesche closed 1 year ago

floesche commented 1 year ago

After clicking "Load from pattern" and then cancelling the loading in the file window, the Function Generator produces the following error.

Error using G4_Function_Generator_gui>pushbutton7_Callback
Expected pattern metadata not found in selected file

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

Error in G4_Function_Generator_gui (line 42)
    gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)G4_Function_Generator_gui('pushbutton7_Callback',hObject,eventdata,guidata(hObject))

Error while evaluating UIControl Callback.

Error using G4_Function_Generator_gui>pushbutton7_Callback
Expected pattern metadata not found in selected file

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

Error in G4_Function_Generator_gui (line 42)
    gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)G4_Function_Generator_gui('pushbutton7_Callback',hObject,eventdata,guidata(hObject))

Error while evaluating UIControl Callback.

This is probably not used very often. But if this happens, can I keep using the function generator or not?

taylorlm88 commented 1 year ago

Doing some quick testing, it looks like if you get this error, the function generator continues to work as expected. I can create and save functions after receiving that error without any issues as far as I can tell. I will look into that callback function, should be a simple fix to this bug.

taylorlm88 commented 1 year ago

Resolved with commit 9fc7bd3