From: Sherif on
I am using NI cDAQ-9172 with two NI 9205 modules (for analoginput) and
one NI 9263 module (for analogoutput). It is ok to start one
analogoutput (AO) and one analoginput simultaneously (AI); start([AI
AO]) but when I try to start two analoginputs AI1 and AI2 using two
modules; start ([AI1 AI2]), I get the following error:

??? NIDAQmx error : Resource requested by this task has already been
reserved by a different task. Task Name: MWDAT0016 Status
Code: -200022

Error in ==> daqdevice.start at 62
start( daqgetfield(obj,'uddobject') );

Error in ==> DAQ_17>run_daq_pushbutton_Callback
at 799
start([AI1 AI2])

Error in ==> gui_mainfcn at 96
feval(varargin{:});

Error in ==> DAQ_17 at 42
gui_mainfcn(gui_State, varargin{:});

Error in ==>
@(hObject,eventdata)DAQ_17('run_daq_pushbutton_Callback',hObject,eventdata,guidata(hObject))

If anyone can help me to solve this problem, it will be greatly
appreciated. Thank you
From: Sherryl Radbil on
Hi Sherif,
Please post the code that shows how you create AI1 and AI2?
Post just the minimum code required beginning with how you create those objects and up to and including the line that gives the error. Include the error itself so we can see it all in context. Seeing just the error it's hard to guess what's really going on.
Thanks,
Sherryl
 | 
Pages: 1
Prev: Ploting
Next: Plot fade in and fade out