# problems with AnaInVlots function

**URL:** <https://forums.digi.com/t/problems-with-anainvlots-function/9158>\
**Category:** Rabbit\
**Created:** [May 11, 2009, 9:25pm UTC](https://forums.digi.com/t/problems-with-anainvlots-function/9158 "2009-05-11T21:25:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![julesdeloire](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@julesdeloire](https://forums.digi.com/u/julesdeloire)\
**Post date:** [May 11, 2009, 9:25pm UTC](https://forums.digi.com/t/problems-with-anainvlots-function/9158/1 "2009-05-11T21:25:27Z")

</div>

hi !!

i’m running the sample RCM4200/adc/AD\_RDVOLT\_ALL.C and go through all the instructions by placing a power supply of 2v to the inputs LN0 but nothing i have always -4096  
i don’t understand why !!:mad:

but i hope having a response ⭕o

---

<div class="post-metadata">

**Author:** ![usestittins](https://avatars.discourse-cdn.com/v4/letter/u/b9e5f3/32.png) [@usestittins](https://forums.digi.com/u/usestittins)\
**Post date:** [May 30, 2009, 12:18am UTC](https://forums.digi.com/t/problems-with-anainvlots-function/9158/2 "2009-05-30T00:18:33Z")

</div>

Hi yes I have checked with phpmyadmin and the pictures are being stored properly. The size of the picture is present.

cass27

---

<div class="post-metadata">

**Author:** ![1dunnj](https://avatars.discourse-cdn.com/v4/letter/1/bbe5ce/32.png) [@1dunnj](https://forums.digi.com/u/1dunnj)\
**Post date:** [October 16, 2009, 5:47pm UTC](https://forums.digi.com/t/problems-with-anainvlots-function/9158/3 "2009-10-16T17:47:32Z")

</div>

I was having a similar problem. First off are you using single (one value) or differential mode(compare)?  
the value you read is (volts on pin \* gainset)/vref \* 2048. If this value is greater than 2048 or a negative number not close to 0, then you will see -4096.  
make sure volts\*gainset is less than 2.048V
