Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Error message when running two VI's

I am using a PCI 6034E interface card with a CB-68LP board.  I created a LabVIEW program to collect temperature readings and save them to a file using the DAQ Assistant and the Write LabVIEW Measurement file Assistant.  I then created the same program by resaving it as a different name.  In differential mode I am allowed 8 pinouts (Ai0- Ai7), my plan is to run one program collecting data on Ai0-Ai3 and use the other program to collect on Ai4-Ai7.  The problem occurs when I go to run the second program.  I recieve the following error:
 
Error - 50103 occurred at DAQmx Start Task.vi
 
Possible Reasons:  The specified resource is reserved.  The operation could not be completed as specified.
Task Name:  _unnamedTask<5>
 
 
Does this occur because I am trying to use subVI's at the same time?  Any help to solve this problem would be greatly appreciated.  Thank you.
 
William Gorman 
0 Kudos
Message 1 of 4
(3,051 Views)
It's not the fact that you have two separate VIs. The problem is that you are trying to run two different tasks with the same hardware. Only one task at a time can be active so you will have to acquire all of your channels with a single DAQ Assistant.
0 Kudos
Message 2 of 4
(3,044 Views)

Gorman,

Dennis is right.  You'll need to acquire all the data you want from the same card at the same time.  There is only one sample clock for the analog inputs, so you cannot run separate tasks simultaneously.  One common solution to this dilemma is to create a separate VI that is responsible for data acquisition and then posts the information to shared variables that the other VIs can then reference.

For more information on data acquisition, configuring tasks or using shared variables, consult the examples that ship in LabView or check out the developer zone on our website.

Good luck!

Elijah Kerry
NI Director, Software Community
0 Kudos
Message 3 of 4
(3,025 Views)
Thank you both for the information, I understand what is going on now.  I will configure my setup accordingly.

William Gorman
0 Kudos
Message 4 of 4
(3,020 Views)