LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fpga

Solved!
Go to solution

I have to check Hall sensor output. It produces 2.5 volts. But when I connect using FPGA, it shows some raw data 8160. How to get the accurate voltage?

0 Kudos
Message 1 of 26
(3,415 Views)

Which FPGA card are you using?  What is the range of the Analog Input?


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 2 of 26
(3,410 Views)

What hardware are you using?

 

Some hardware will return a fixed point value that is scaled and some will return the raw A/D counts and you've got to convert that.  The latter sounds like your case.  You need to know the number of bits in your A/D and the input range in order to calculate the voltage per A/D count.

0 Kudos
Message 3 of 26
(3,409 Views)
Solution
Accepted by topic author gaks

This sounds like the FPGA has a -10..10V input with 16 bits.

The range -32768..32767 (16bits or I16) corresponds to -10..10V.

The value you're getting (8160) corresponds to 2.49V.

 

Message 4 of 26
(3,400 Views)

You have to get the LSB Weight and Offset Values from the modules and use them to convert the readings into voltages.  See link below.

 

http://digital.ni.com/public.nsf/allkb/2BDBB541D421673A8625752E005F4B32

 

0 Kudos
Message 5 of 26
(3,386 Views)
i am using pxi-7842R i have connected the output of hall sensor to SCB 68 . i want to convert the RAW data to actual voltage ...
0 Kudos
Message 6 of 26
(3,364 Views)

hey this range is correct but...pls tell me how to configure it for my actual voltage output i.e 2.49 v...i am using pxi-7842R

0 Kudos
Message 7 of 26
(3,354 Views)

The FPGA does not support floating point numbers (well in LV FPGA 2012 it does support SGL).

To transform a I16 value into -10..10V just divide the I16 value by 3276.75 (multiply by 10 and divide by 32767.5).

 

0 Kudos
Message 8 of 26
(3,339 Views)

actually i m new..i dont know how to perform that action can you explain it please

0 Kudos
Message 9 of 26
(3,337 Views)

If you don't know how to perform a simple division I would recommend going through the LabVIEW Tutorials...

 

0 Kudos
Message 10 of 26
(3,335 Views)