07-24-2023 05:34 PM
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?
07-24-2023 06:51 PM
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.