The doc says:

Scaling

To convert from ADC values to volts, first obtain the minimum and maximum ADC

values for the selected channel by calling the HRDLGetMinMaxAdcCounts function in

the driver. Next, scale the ADC value to the voltage range you specified when you

called HRDLSetAnalogInChannel. You can calculate the voltage range

programmatically by using

Vmax = 2500 mV / (2^r)

where r is the range constant you supplied to HRDLSetAnalogInChannel (0 for ±2500

mV, 1 for ±1250 mV and so on).

Why do I need the call to GetMinMaxAcdCounts if r is simply the value input in SetAnaologInChannel?

I'll just add that since the examples hard code the values in the conversion rather than calculate them as described, it results in a good bit more of work than it seems like I should have to put up with for an appliance I paid for.

Thanks.