jdlogicman
2008-08-08 16:10:10 UTC
I'm not an EE, but I have to write a program in DAQmx for a PCI-6052E. One of the things I must do is acquire analog signals. I'm learning the concepts as I go, but translating them into the DAQms API is giving me a little trouble.
I can read individual analog inputs just fine, but I was told that two of the lines are differential to each other, i.e I am supposed to read one value that represents ai3 - ai11.
I saw the option for CreateVoltageChannel to use AITerminalConfiguration.Differential, but when I verify the task, I get an error that says I can't use differential mode. I didn't see any samples for how to encode the lines to read in a special way, so I used "/Dev1/ai3,/Dev1/ai11".
So, do I:
1- Just pass (AITerminalConfiguration)(-1), which lets DAQmx decide the right mode, and subtract the values I get?
2- Use an explicit mode (not -1) and do the same?
3- Something else?
Thanks much!
John Duddy
I can read individual analog inputs just fine, but I was told that two of the lines are differential to each other, i.e I am supposed to read one value that represents ai3 - ai11.
I saw the option for CreateVoltageChannel to use AITerminalConfiguration.Differential, but when I verify the task, I get an error that says I can't use differential mode. I didn't see any samples for how to encode the lines to read in a special way, so I used "/Dev1/ai3,/Dev1/ai11".
So, do I:
1- Just pass (AITerminalConfiguration)(-1), which lets DAQmx decide the right mode, and subtract the values I get?
2- Use an explicit mode (not -1) and do the same?
3- Something else?
Thanks much!
John Duddy