Hello RDonaldson,
Calling DAQmxSetAIAutoZeroMode(taskHandle, "", DAQmx_Val_Once) should make DAQmx ground the SCXI-1141's inputs, read the offset, unground the inputs, and subtract the offset from your measurements automatically. It does the offset measurement when the task is reserved (which is usually when you call
DAQmxStartTask() unless you're using
DAQmxTaskControl() for finer-grained task state control).
You can also tell the SCXI-1141 to ground all its inputs by calling
DAQmxSetAICoupling(taskHandle, "", DAQmx_Val_GND) before you start your task. Then you can read the offset yourself by reading data from the task
. Setting the AI coupling to DAQmx_Val_DC will unground the inputs.
Brad
Message Edited by Brad K on
12-14-2007 01:39 PM
---
Brad Keryan
NI R&D