LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Collecting voltage data across multiple channels. NI 6002

Solved!
Go to solution

Hello Everyone,

 

I am using a NI 6002 to read voltage across two channels. I am using DAQmx to initialize channels A0 and A1. When I do this my data is outputted from DAQmx Read as an array. The issue I am having is indexing the array so I can use the data coming from channel A0 and A1. I tried getting data from channel A0 by indexing the array for row 0. It did not work. What did work was indexing the array for row 1. Why is this and how do I get data from channel A1?

Attached is my VI.

 

Any Information Would Be Appreciated!

Thank you

0 Kudos
Message 1 of 2
(2,258 Views)
Solution
Accepted by topic author KurtzC1

Your problem is how you defined the channels.  You used "Dev1/ai1:0".  Notice that 1 is first.  So the first channel of your read data will be from AI1.  Change it to be "Dev1/ai0:1" and then things will make more sense.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 2
(2,224 Views)