Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DaqMX error when attempting to acquires 3 channels of data

I'm using a 6052E multifunction Daq and attempting to acquire 3 channels of data using the code attached in the image. When I run the application continuously, I get a DAQ error 50103 at DAQMX Start Task- "channel name - resource is reserved" . What am I doing wrong? Are there any comprehensive DAQMX Tutorials available or examples?

 

Thanks in advance.

 

 

 

   TARE.JPG

 

 

0 Kudos
Message 1 of 2
(2,996 Views)

The error you are getting is a common one for beginners and a search for it should have turned up numerous threads. You cannot use separate tasks for the same resource. You use a single task with multple channels (i.e. Dev1\ai0:2).

 

There is the Getting Started with DAQmx tutorial. LabVIEW has examples. Simply go to Help>Find Examples.

 

I don't see your loop so that the code can run continuously but the Create Channel, Start Task, and Stop Task should be outside the loop.

Message 2 of 2
(2,994 Views)