Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

where is DAQmx_Val_InputTermCfg_Diff

Hello. I am using PXI-4461 and want to use differential input and output. However, when using
 
 DAQmxErrChk (DAQmxCreateAIVoltageChan(taskIn, AudioIn, "", DAQmx_Val_Cfg_Default, -1, 1, DAQmx_Val_Volts, NULL));
According to the documentation, the following options should be available:
 
DAQmx_Val_Cfg_Default
DAQmx_Val_InputTermCfg_RSE
DAQmx_Val_InputTermCfg_NRSE
DAQmx_Val_InputTermCfg_Diff
DAQmx_Val_InputTermCfg_PseudoDiff
 
only first constant is available in NIDAQmx.h, the other 4 are not defined.
 
MAX reports NI-DAQ to be version 8.3.0f3 and the file I am using is located in C:\Program Files\National Instruments\NI-DAQ\DAQmx ANSI C Dev\include
 
Thank you
Roman
0 Kudos
Message 1 of 4
(3,153 Views)
Hi Roman,

The correct constants for C are DAQmx_Val_RSE, DAQmx_Val_NRSE, DAQmx_Val_Diff, and DAQmx_Val_PseudoDiff, which are defined in NIDAQmx.h. The ones you listed are for Visual Basic 6. What documentation were you looking at?
---
Brad Keryan
NI R&D
0 Kudos
Message 2 of 4
(3,138 Views)

Hi Brad,

thanks for the response. I was looking at NI-DAQmx C Reference Help -> Index -> DAQmxCreateAIVoltageChan.

Thank you

Roman

0 Kudos
Message 3 of 4
(3,133 Views)
Thanks Roman,

That is an error in the NI-DAQmx C Reference Help, and it will be fixed in the next version.

Brad

Message Edited by Brad K on 02-02-2007 03:49 PM

---
Brad Keryan
NI R&D
0 Kudos
Message 4 of 4
(3,132 Views)