PsychToolBox: Error passing input from GUI to simple Pavlovian script

Hi everyone, 


I have a GUI created from GUIDE (PITGUI.m) that is supposed to pass some simple input from the GUI to a Pavlovian script (PITtask.m) as a structure. When running it I'm receiving the following error:


Error: File: PITtask.m Line: 61 Column: 113

Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for

mismatched delimiters.


Error in PITGUI>RunExp_Callback (line 271)

PITtask(handles);


Error in gui_mainfcn (line 95)

        feval(varargin{:});


Error in PITGUI (line 42)

    gui_mainfcn(gui_State, varargin{:});


Error in

matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)PITGUI('RunExp_Callback',hObject,eventdata,guidata(hObject)) 

Error using uiwait (line 81)

Error while evaluating DestroyedObject Callback.



I have put the links for the GUI and Pavlovian scripts as well. Any help would be greatly appreciated!

Lauren