Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

One or more devices do not support multidevice tasks

Solved!
Go to solution

I am in vs2015 with NationalInstruments.DAQmx library file development, when I add multiple devices being given: 'One or more devices do not support multidevice tasks'. How do I add multiple devices? My code is as follows:

 

myAsyncCallback = new AsyncCallback(AnalogInCallback);
_myTask = new Task();
_myTask.AIChannels.CreateThermocoupleChannel("Dev1/ai0", "", 0.0, 100.0, AIThermocoupleType.K, AITemperatureUnits
.DegreesC);
_myTask.AIChannels.CreateThermocoupleChannel("Dev2/ai1", "", 0.0, 100.0, AIThermocoupleType.K, AITemperatureUnits
.DegreesC);
_myTask.AIChannels.CreateThermocoupleChannel("Dev3/ai2", "", 0.0, 100.0, AIThermocoupleType.K, AITemperatureUnits
.DegreesC);

_myTask.Timing.ConfigureSampleClock("", Convert.ToDouble(1),SampleClockActiveEdge.Rising, SampleQuantityMode.ContinuousSamples,1000);

0 Kudos
Message 1 of 2
(2,615 Views)
Solution
Accepted by topic author echogoo

Hi echogoo,

 

What devices are you using? Not all of our devices support having multiple devices in one single task. Here is a list of the types of devices that support multidevice tasks:

 

https://zone.ni.com/reference/en-XX/help/370466AC-01/mxdevconsid/multidevicetasks/

 

If your devices aren't supported, I would just create a unique task for each thermocouple channel.

 

Cheers,

Ryan C.

0 Kudos
Message 2 of 2
(2,527 Views)