Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx resource busy

I have a program where I use a cDAQ 9174 device to control two separate "stations" that are identical. Each station uses a dedicated NI9210 to read type K thermocouples and a dedicated NI9472 to trigger relays. A pop-up window asks the user to select which station they would like to run. When selected a new window opens to log data. Both stations can be run at the same time (using a preallocated reentrant vi to open a second identical window but calling the other DAQ cards on the same cDAQ). I have had no issues with this setup.

 

I recently tried to replicate this again with two NI9210 and two NI9203 (current input device). However when I run my code the task associated with the NI9203 says the resource is busy whenever I try to start a second station concurrently. I have double checked my MAX settings and they are mapped properly as not to use the same card. I can run each individually no problems but whichever one I start second the 9203 always errors out. Any ideas?

0 Kudos
Message 1 of 2
(564 Views)

So, yes, there is a limitation.

 

The reason you see an error is because a HW resource required for your new DAQmx task to work is being used by the task you created first. Yes, there is limited resource on cDAQ.

 

You can have only one AI task active per cDAQ. This means, all AI channels that intend to run at the same time must be part of the same task.

https://www.ni.com/en/support/documentation/supplemental/18/number-of-concurrent-tasks-on-a-compactd...

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 2
(548 Views)