Pass GUI handles through addlistener function in the session based interface
이전 댓글 표시
I am trying to control a NI Daq using Session based interface through a GUI and I am having problems sending handles through addlistener function.
lh = handles.ai.addlistener('DataAvailable', {@datacallback1,handles});
handles.ai.startBackground()
I get the following error
One or more output arguments not assigned during call to "_feval".
Error in daq.Session/addlistener (line 125) [el] = addlistener@handle(varargin{:});
Error in MAIN_GUI>monitor_Callback (line 165) lh = handles.ai.addlistener('DataAvailable', {@datacallback1,handles});
Error in gui_mainfcn (line 96) feval(varargin{:});
Error in MAIN_GUI (line 42) gui_mainfcn(gui_State, varargin{:});
Error in @(hObject,eventdata)MAIN_GUI('monitor_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback.
I want the function handles so that i can plot them on my GUI.
Is there anyother way to send handles through the addlistener funciton.
Thanks.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 National Instruments Frame Grabbers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!