06-24-2017 11:51 PM
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);
Solved! Go to Solution.
06-27-2017 10:42 AM
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.