LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem reading 2 ai chanels at the same time

Hello I have got a NI 6229 Card and want to read 2 analog signals at the same time.
Trying that I always get a message  Error -50103. saying that the resource is allready reserved.
Now my question . Is it possible to read 2 analog input signals at the same time? I

Regards

Matthias
0 Kudos
Message 1 of 4
(2,831 Views)
I thik u need to close the analog channels first, Use DAQmx stop task.vi to close open resourses. Give the channel name as input to this vi and run it once.  Every time u open a channel to acquire any data u need to close it after reading or writing the data. (If channel is dedicated for some specific function u dont need to open and close it again and again.)
Message 2 of 4
(2,825 Views)
All that you have to do is use a single DAQ Assistant or single DAQmx Create Channel if you are using the lower level functions. The DAQ Assistant specifically tells you how to select multiple channels. If you are using the lower level functions, you can select multiple channels when you click on the physical channel control and select browse. You can also just type in a list (i.e. Dev1/ai0:2).
0 Kudos
Message 3 of 4
(2,812 Views)
If you want to get some background information on that, please have a look at this thread.

Best regards,

Jochen Klier
National Instruments
0 Kudos
Message 4 of 4
(2,795 Views)