06-17-2009 11:25 AM
Hi All,
Sorry for the gumby question, but I am new to all this DAQmx stuff, and I am trying to figure out how it all works.
I am using a USB-6229 with LabVIEW 8.6.1.
I would like to use 30 of the AI lines to monitor 30 remote voltage signals.
I would like to use the other two AI lines to perform independent voltage input tasks.
I tried to create and start two tasks, but I get an error message when I try to start the second task. It tells me the resource is not available.
What is the cleanest way to set things up to work for me?
Thanks in advance.
- FB
Solved! Go to Solution.
06-17-2009 11:30 AM
Hi diarmaede,
you can only create one AI task on your card. You have to read all your AI's from this card in one loop. You can split the result and send it to different loops to work on it.
Hope it helps.
Mike
06-17-2009 11:33 AM
Thanks, Mike.
That's what I figured, but I was hoping I was wrong.
- FB
06-17-2009 11:44 AM - edited 06-17-2009 11:44 AM
06-08-2011 03:34 AM
Hello,
My work involves having to acquire data from thermistors as well as thermocouples simultaneously using a PCI 6071E DAQ card. I'm using an AI Voltage task to acquire data from the thermistors after which I manipulate the data within the loop to get the temperatures. To acquire data from the thermocouples I'm trying to use an AI Temp TC task but I'm getting the 'specified resource reserved' error. From readin the previous posts I understand that two AI tasks cannot be run at the same time from the same card. If I acquire thermocouple data as volatges, then the manipulation is quite involved as there are a lot of equations and parameters that have to be manually programmed. I'm very new to labview and as such would prefer to use the DAQmx function for thermocouples. Is there any way that I could use the AI Voltage and AI Temp TC tasks together in the same programme?
Any help/advice is greatly appreciated.
06-08-2011 07:39 AM
Yep, all you need to do is call the DAQmx Create Virtual Channel VI's one after the other using the same task. Alternatively, if you are using the DAQ Assistant, you can add different channel types to the same assistant.
06-08-2011 07:53 AM
Hair-splitting:
You do not need the DAQ Assistant to configure channels of different types.
You CAN create more than one task for a single DAQ device BUT only one can be active at any time. Using two tasks is handy if you have a long term process you have to moniotr and when a condition is met, stop the slow task and start the fast task.
Done splitting hairs.
Ben