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!