Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How could i use NI 9211 and 9205 input modules together?

Hi, I want to use NI 9211 thermocouple input module to acquire temperature data,and  use NI 9205 voltage input module to acquire voltage signal from silicon photodiode at the same time. it's does not work when i write the program using labview, the program could work separately, but when i put two parts together,  there are some error. I attached my program and the error. please give me some suggestion on how to solve this issue. Thank you very much! 

0 Kudos
Message 1 of 5
(3,259 Views)
I assume you are using a cDAQ-9172 which only has one analog input timing engine.  You can use the NI 9211 and NI 9205 together but they must be in the same task.  Call create channel for one of your modules (say the NI 9211) and wire the task out to task in of the create channel for the NI 9205.  You can then call the N channel version of read and get data from both devices.
0 Kudos
Message 2 of 5
(3,238 Views)
Thanks, MarkGrot. You are right, i am using cDAQ-9172, I used your method, it's work. But i met a new issue, I want to monitor temperature all the time, but i only need acquire the signal voltage at specified time, just as i attached the first picture. Now i could realize acquire both NI 9211 and NI 9205 at the same time, but i want to add the data acquisition function of signal voltage to the second while loop as attached, it's still does not work. Could you give me some more suggestion? Thanks
0 Kudos
Message 3 of 5
(3,232 Views)

I'm not sure I fully understand your question.  If it's a matter of generating the voltage reading in the upper loop and processing it in the second, that's easy enough.  There are a number of ways of doing that from using a local variable to the much more complex.  There should be tons of examples and discussion forum posts on that.

 

If the issue is that you want to sample the channel when a specific event is triggered, that's a little different.  You could use the last sample read, use the event to initiate a read, etc.  It all depends on what your requirements are but I think at this point it's more of a general programming issue.

0 Kudos
Message 4 of 5
(3,203 Views)
Dear Bo Mo, please contact with me on my yahoo ID. khankamil19@yahoo.com
0 Kudos
Message 5 of 5
(3,044 Views)