03-10-2009 06:24 AM
I'm student and i'm working about a project in order to realize a supervision program for an electrical instalation, i use a USB adquisition card and i use C# for programming with DAQmx, the problem is that i don't understand how i can adquire and display the data of to channels in the same time, when the program arrive at the line 381 (" double[,] données = courantReader.EndReadMultiSample(ar);") Visual C# say me :
"The specified resource is reserved. The operation could not be completed as specified.
Task Name: tensionTask
Status Code: -50103"
I don't know if it's a problem because i want to use tow tasks of the same typein the same time, or if it's another problem..somebody can save me ???!!!!
I pass the program with the message..
Thx
03-13-2009 08:55 PM
Hi Thias,
The 50103 basically is letting you know that you already have one read task already running. Because of the hardware on your device (E series and M series cards), there is only one convert clock which must be shared by all the channels you are aquiring on. This means that you can only have one analog input task running at a time.
This is explained here:
KnowledgeBase 4T6CQKBP: Causes of NI-DAQmx Error -50103 "The Specified Resource is Reserved"
A workaround is described here, which basically takes into account that a task can have multiple channels on it:
KnowledgeBase 36GDNLW0: How Can I Take Buffered and Single Point AI Simultaneous Without Getting Err...
These (and other helpful articles) can be found by searching www.ni.com for 50103 (your error code).
Hope this helps!