I use the DAQ version 7.4 and the voltage source is common DC 0-30V. I used the following codes to measure:
DAQmxCreateAIVoltageChan(taskOut, "PXI1SLOT1/ai0", "Voltage0",
DAQmx_Val_Diff, 0, 5, DAQmx_Val_Volts, "");
DAQmxCfgSampClkTiming(taskOut, "",1000, DAQmx_Val_Rising,
DAQmx_Val_ContSamps, 5000));
DAQmxReadAnalogF64 (taskHandle, 1000,10.0,
DAQmx_Val_GroupByChannel,data,
1000,&actualSamplesRead, 0);
PlotY(panel,PANEL_GRAPH,&datasamplesToReadPerChannel*i],
actualSamplesRead,VAL_DOUBLE,VAL_THIN_LINE,
VAL_EMPTY_SQUARE,VAL_SOLID,1,ColorArray[i]);
The wave I measured was not DC,but liked the pulse wave ,the max voltage is 1V, but the min voltage is 0V.
I have not measure other voltage.
Thanks!