Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read separate channels in one task (DAQmx).

I have a PCI6014 board and trying to read ONLY channel 1 and 7. At this moment I only know to read all channels from 1 to seven (Dev1/ai1:7), but for improve speed i only need 2 separate channel, not 8.
Of course that it should be made in only one task.
Thanks in advance.
0 Kudos
Message 1 of 4
(2,610 Views)
Bierzo,

There are several ways you can do this. You can specify your channels as a comma seperated list (ie. Dev1/ai1,Dev1/ai7). You can also call DAQmx Create Channel twice (once for each of the channels you want to read), and use the same task handle in both instances. Either of these methods should allow you to read only the two channels you are interested in.

I hope this helps,
Dan
Message 2 of 4
(2,610 Views)
Thank's, it works great. The solution was simple but really i can't find it on the documentation.
0 Kudos
Message 3 of 4
(2,610 Views)
You can find the use of physical channel strings discussed in the NI-DAQmx documentation.

Programs>>National Instruments>>NI-DAQ>>NI-DAQmx Help

The format is just your standard help documentation but there is a *ton* of useful information in this help file. The physical channel strings are discussed in:

Key NI-DAQmx Concepts>>Channels>>Physical Channel Syntax
-scraggs99
0 Kudos
Message 4 of 4
(2,610 Views)