Why is voltage incorrect?

Post general discussions on using our drivers to write your own software here
Post Reply
Guest

Why is voltage incorrect?

Post by Guest »

When using the supplied example in LabView, the reported voltages are incorrect.

The voltages are calculated as=
(value*(voltage/2^0))/MaxADC ,
but two simultaneous examples, measured on channels 1 and 3 (differential)

-30850*2500/524287 = -147 , correct value is -163 mV

-16046*2500/524287 = -76,5 , correct value is -235 mV

so it doesn't seem to be a scaling problem. any clues?

gruntman
Advanced User
Advanced User
Posts: 109
Joined: Thu Sep 28, 2006 3:50 pm

Post by gruntman »

Hello,

How are you obtaining the values that are correct? Describe your testing setup for us so we can track down the source of the problem. Thanks!

Regards,

Richard Boyd
Crag Technologies, Inc
http://www.pc-oscilloscopes.com

Guest

Post by Guest »

using picorecorder and a voltmeter, both give the same and correct values, but using the HRDL vi gives incorrect values. i use a ADC-20 with the circuitboard extension, and i only measure voltages, no currents and/or resistors are involved.

Guest

Post by Guest »

i just found in the labview thread something about 20bit and the default example using 16bit inputs, will try to change this and then report back.

Guest

Post by Guest »

this was the problem. Please note that in the HRDL vi you supply in your development pack adc20 uses 16bit integer to register a 20bit int.

/ Mark

gruntman
Advanced User
Advanced User
Posts: 109
Joined: Thu Sep 28, 2006 3:50 pm

Post by gruntman »

Mark,

Thanks for the update. I'll be sure that we get our example updated to fix this. Thanks!

Regards,

Richard Boyd
Crag Technologies, Inc
http://www.pc-oscilloscopes.com

Post Reply