Pass GUI handles through addlistener function in the session based interface
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su National Instruments Frame Grabbers in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!