08-26-2006 04:09 AM
08-26-2006 04:53 AM
I'm getting the following error when I replace DAQmx_Val_Cfg_Default with DAQmx_Val_RSE
Run-time error '-200077 (fffcf273)':
Requested value is not a supported value for this property
in
DAQmxCreateAIVoltageChan(taskHandle, sChannelText, "", DAQmx_Val_Cfg_Default, CDbl(sMinValue), CDbl(sMaxValue), DAQmx_Val_VoltageUnits1_Volts, "")
Is DAQmx_Val_RSE a wrong constant for the USB-6008?
Mauritz
08-28-2006 12:30 PM
08-28-2006 12:39 PM
Thanks Garret.
I managed to get it woking by retyping the function call and using this constant DAQmx_Val_InputTermCfg_RSE. Is this different from DAMmx_Val_RSE?
Mauritz
08-28-2006 01:21 PM
Hi Mauritz-
The DAQmx configuration constants differ slightly in the VB6 .tlb from those that are documented in the NI-DAQmx C Reference Manual. The functionality is the same for the two constants you mentioned. The easiest way to select the correct constants in the VB6 interface is to use the field autocompletion functionality in VB6.
Hopefully this helps-