LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -50103 occuring in one program, but not occuring in another similar program

Hello,

 

I'm a new user of LabView and I'm trying to figure out how a part of this programming process works.  Anyway, the block diagram of the working program consists of the first two pictures (C:\Users\Labview\Pictures\errorsetupnew1.jpg  -and-  C:\Users\Labview\Pictures\errorsetupnew2.jpg).  The parts in question are the DAQAssistant9 and DAQAssistant12 in the lower half of the diagram.  When I run the program, everything goes fine.

 

So now I'm trying to run two other programs that both share the same properties as these two DAQAssistants, but they are in two separate programs.  When I run one program, it works, but when I run the other program, Error -50103 occurs at DAQmx Control Task.vi:10.  Pressing continue yields Error -50103 occuring at DAQmx Read (Analog 1D Wfm NChan NSamp).vi:3. 

 

So my first attempt at solving it was to consolidate it into one program and run it all together, however the same error shows up.  I isolated the two While loops which seem to be causing the problem into a test program (third picture) and the error occurs there as well. 

 

My question is what is different from the program in the first two pictures that is allowing the program to run correctly and the test program (which can be extended to the program that I need to work).

 

I'm new, so please let me know how many beginner mistakes I might be making here!

 

Thanks

Download All
0 Kudos
Message 1 of 4
(2,651 Views)

Did you search for that error code? It's an extremely common mistake. Attaching images of DAQ Assistants is next to worthless since all of the code is hidden but a resource reserved error means you have attempted to use the same DAQ resource in two different tasks. You simply cannot split, for example, different analog input channels between two different assistants. You have to use a single assistant that uses all of the channels you want to acquire from.

0 Kudos
Message 2 of 4
(2,640 Views)

I'm not currently at the computer with the files in question, but what if I attached those instead when I got the chance?  The problem is that I don't believe I am using the same DAQ resource in two different tasks.  The command line runs correctly in one, but can not run in the other even though the part giving the error is just a copy of the other program.

 

I'm trying to run through the previous posts about this particular error but the LabView lingo is something I'm still getting used to.  Thank you for bearing with me and helping.

0 Kudos
Message 3 of 4
(2,603 Views)

It seems to me that both of your DAQ Assistants are setup for analog input. That is a single resource. You simply need to modify one of them to acquire multiple channels. When you created the assistant, the help explained how to select multiple channels. When you have an existing assistant, right click on it, select properties, and click on the 'Add' button at the top.

0 Kudos
Message 4 of 4
(2,594 Views)