01-26-2018 06:14 PM
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
Solved! Go to Solution.
01-27-2018 04:50 AM
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.