Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use AISampleChannels to get 16 analog inputs?

I want to do 8 differential inputs but I'm wondering if I can use one call to AISampleChannels(not sure about 2nd parmeter of this function) and graph my data to 4 individual graphs. I use LabWindows/CVI with a PCI-6025E board on a Win98 machine.

Thanks in advance
0 Kudos
Message 1 of 4
(2,760 Views)
Hello;

The best way to go about that is to use one of the NI-DAQ shipping examples for continuous analog input, and then, split up the result array to the four graphs you need.

The best exemple to start of is the one named DAQDoubleBuf.c, that you can find at C:\Program Files\National Instruments\NI-DAQ\examples\VisualC\AI.

Hope this helps.
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(2,760 Views)
Tech support responded to my first posting and I now understand what was going on with my use of AISampleChannels(); Now I am wondering why on my PCI-6025E(documented as having 16 single-ended channels) that both test panel and my application say that any channel of 8 or > is invalid?
0 Kudos
Message 3 of 4
(2,760 Views)
I hope I am not making false statement here but does that to do with your channels setup as Single-ended/ Differential ?

I supposed that if you have configured it as Differential inputs, then pairing take place and there will be max.of 8 differential input possible.

Something to do with this?

Cheers!
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 4
(2,760 Views)