Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI4060 MSVC++ and Auto Range. How?

I am trying to use the nidmm_32.dll library to perform some simple 2-wire
resistance measurements. I would like to turn on autoranging. I have tried
calling

niDMM_SetAttributeViReal64( vi, "", IVIDMM_ATTR_AUTO_RANGE_VALUE,
IVIDMM_VAL_AUTO_RANGE_ON )

but it still does not autorange. Does the niDMM api support autoranging or
do I need to write my own code to perform the same task?

Thanks,
Chris Lincoln
ULTRAX, Inc.
0 Kudos
Message 1 of 3
(3,204 Views)
BTW, at the moment, I am interested in 2-wire res. measurements.

Chris Lincoln wrote in message
news:389ed1f8@newsgroups.ni.com...
> I am trying to use the nidmm_32.dll library to perform some simple 2-wire
> resistance measurements. I would like to turn on autoranging. I have
tried
> calling
>
> niDMM_SetAttributeViReal64( vi, "", IVIDMM_ATTR_AUTO_RANGE_VALUE,
> IVIDMM_VAL_AUTO_RANGE_ON )
>
> but it still does not autorange. Does the niDMM api support autoranging
or
> do I need to write my own code to perform the same task?
>
> Thanks,
> Chris Lincoln
> ULTRAX, Inc.
>
>
0 Kudos
Message 2 of 3
(3,204 Views)
Since natinst.public.* is the land of unanswered questions, I posed the
question to NI tech support. Setting the range to IVIDMM_VAL_AUTO_RANGE_ON
was the correct suggestion from NI.

Thanks,
Chris Lincoln
ULTRAX, Inc.

Chris Lincoln wrote in message
news:389ed1f8@newsgroups.ni.com...
> I am trying to use the nidmm_32.dll library to perform some simple 2-wire
> resistance measurements. I would like to turn on autoranging. I have
tried
> calling
>
> niDMM_SetAttributeViReal64( vi, "", IVIDMM_ATTR_AUTO_RANGE_VALUE,
> IVIDMM_VAL_AUTO_RANGE_ON )
>
> but it still does not autorange. Does the niDMM api support autoranging
or
> do I need to write my own code to perform the same task?
>
> Thanks,
> Chris Lincoln
> ULTRAX, Inc.
>
>
0 Kudos
Message 3 of 3
(3,204 Views)