Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

I cannot set the input terminal configuration for my AIvoltage task

Solved!
Go to solution

My analog in voltage measurement task created with VB6 and Measurement Studio will not allow the input terminal configuration to be changed from DAQmx_Val_Cfg_Default to DAQmx_Val_NRSE. I receive error message: "Requested value is not a supported value for this property." However the value I am trying to use comes directly from the "NI-DAQmx C Reference Help" for the DAQmxCreateAIVoltageChan task.

 

0 Kudos
Message 1 of 6
(3,725 Views)
Solution
Accepted by topic author vecsol

Yea, I believe this issue was reported recently. Don't know why that happens but the workaround is to find out the integer values associated with each of the parameters in the header file NIDaqmx.h:

C:\Program Files\National Instruments\NI-DAQ\NI-DAQmx ANSI C Dev\include\NI-DAQmx.h

 

Then just pass this value to your function. Let us know if that works or not.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Message 2 of 6
(3,721 Views)
Well, first you have to check whether the DAQ device you are using actually supports NRSE. I suspect it does not because you are getting that error. Read what the manual has to say. The model number of the device is important information and you did not provide it/
0 Kudos
Message 3 of 6
(3,720 Views)
Thank you Adnan. Your suggestion of substituting the numeric value from the header file has solved this problem completely. FYI the numeric 10078 sets the input terminal configuration to NRSE.
0 Kudos
Message 4 of 6
(3,710 Views)
The device is USB 6281.
0 Kudos
Message 5 of 6
(3,706 Views)

Hello vecsol,

 

Adnan is correct; this behavior is documented in the KnowledgeBase article 4U0DJ8QL which can be found here. Thanks for your post!

Daniel S.
National Instruments
0 Kudos
Message 6 of 6
(3,676 Views)