LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fpga

Solved!
Go to solution

Of course, the code will work in the full range -10V..10V. It's really simple math.

The value will fluctuate, that's just in the nature of measurements. If you think there is an offset then you can correct for it.

Look at the DMA examples for how to transfer values to the host system.

 

Message 21 of 26
(664 Views)

I would just like to say that it is best to do as much calculations and processing using the raw value as possible.  This will use less gates (very important in FPGA) and be more accurate.  Once you transfer the data to the host, let the host convert into a double.  This will give you the best accuracy.


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 22 of 26
(659 Views)

hey i am not able to correct it for 2.50....what is the maths behind dis can you please explain it once

0 Kudos
Message 23 of 26
(657 Views)

You shouldn't correct a value just because you expect it to be 2.5V. It's possible that the analog inputs have an offset, but that's usually below a mV for that FPGA card.

How do you know the value is actually 2.50V?

 

0 Kudos
Message 24 of 26
(636 Views)

actually i measured it via multimeter ...it shows 2.5 v....

0 Kudos
Message 25 of 26
(631 Views)

How precise is your multimeter? What's the resolution, 12bits?

If you think your reading is off by -0.01V then add 0.01V to it.

You might also want to think about averaging several readings from the FPGA analog input if you're interested in the DC value. Or use a low-pass filter.

 

0 Kudos
Message 26 of 26
(625 Views)