LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert Voltage values to Decimal values.

 

I need to convert voltage values/range to decimal values/range.

Example: I read voltage (range 0 to 1.0volts) form DAC and covert it corresponding decimal value (decimal value range is 0 to 16000).

0 decimal = 0 volts

16000 decimal = 1.0volts.

Thanks for the help.

 

 

 

 

0 Kudos
Message 1 of 8
(6,348 Views)

Calculate the VLSB (voltage of the least significant bit) and multiply the DAC response by that. (VRefHigh - VRefLow) / Number of Bits, or in your case (1 - 0)/16000 = 0.0000625. So take your read back from the DAC times 0.00625. I'm curious though, 16,000 is an odd number for a DAC, they are usually a power of 2 like 2^14 (16,384). What kind of DAC do you have?

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 2 of 8
(6,344 Views)

Thank you for your quick reply.

We are using LTC 2620. For now, we will be using the values up to 16000.

Thanks Again.

0 Kudos
Message 3 of 8
(6,311 Views)

I'm not sure how you'd get a value of 16000 out of the 2620 as that is only a 12-bit DAC that will produce values from 0 to 4095. Here's the transfer function directly copied from page 12 of Linear's datasheet.

 

 

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 4 of 8
(6,296 Views)

Sorry for the typo. It is LTC 2600.

0 Kudos
Message 5 of 8
(6,276 Views)

The LTC 2600 is a 16-bit DAC.  So the max value is really 65535.  But that is from 0 to 5V.  With that rational, 1V should be 13107.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 8
(6,273 Views)

We need fine tuning down to mVolts.

0 Kudos
Message 7 of 8
(6,270 Views)

@crossrulz wrote:

But that is from 0 to 5V


The Ref is an external pin and can be wired to whatever reference he has available, which leads me to believe that his reference is set to 4.096 volts.

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 8 of 8
(6,256 Views)