05-17-2006 10:08 AM
05-17-2006 10:20 AM
05-17-2006 10:35 AM
05-17-2006 10:52 AM
05-17-2006 10:57 AM
The hardware I am using is as follows:
cDAQ-9172 (Chasis)
NI 9211 (TC Module)
NI 9205 (Analog Input Module)
05-17-2006 01:40 PM
05-17-2006 02:08 PM
05-17-2006 03:09 PM
Hi Roese,
You would set the sampling rate for the task just like any other, with the DAQmx Timing VI. Using CompactDAQ, you can run multiple analog input modules in the same analog input task. Being in the same task, all of the analog input modules would have the same sampling rate. The sampling rate you specify is limited by the slowest module in the cDAQ chassis with the exception of the 9211. The 9211 can be sampled faster than its max rate (you'll just get the same data multiple times).
-Sal
07-01-2010 08:26 AM
@Dennis Knutson wrote:
You cannot have more than one task running on the same device. All you need to do is have a single task with multiple channels. In your case, use two different Create Virtual Channel functions. One for the thermocouple and one for the analog input. Wire the task out from one to the task in of the other and wire the task out of the second to the Start Task.
I'm a little bit confused by this, since I have successfully run two tasks from one device in parallel loops. For example, the attached code runs fine. Maybe it has to do with the fact that I am reading and writing on demand?
Ken
07-01-2010 11:55 AM
@halvorka wrote:
@Dennis Knutson wrote:
You cannot have more than one task running on the same device. All you need to do is have a single task with multiple channels. In your case, use two different Create Virtual Channel functions. One for the thermocouple and one for the analog input. Wire the task out from one to the task in of the other and wire the task out of the second to the Start Task.
I'm a little bit confused by this, since I have successfully run two tasks from one device in parallel loops. For example, the attached code runs fine. Maybe it has to do with the fact that I am reading and writing on demand?
Ken
One of the rare instances where Dennis gave an errant answer. I too have run two separate tasks on one Multifunction DAQmx device, just as shown by halvorka. I have also done the same with HSDIO devices, one task to generate data and another task to read data, all running in parallel. Maybe only certain devices can do this and others can't.