Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting LabVIEW FPGA I16 audio data to raw voltage data

Solved!
Go to solution

I am using myRIO 1900 and LabVIEW 2015. On the fpga side of myRIO, the Audio IN terminal is giving values in integer data (I16), whereas on RT side of myRIO the real value will come directly.
From the User guide of myRIO 1900 (see page 7 and 8), the full scale value of myRIO Audio IN is +/- 2.5V. Considering this, my I16 value 32767 has to corresponds to +2.5V and so on.. [ Please refer this ]
But problem is my RT side data is not matching with the FPGA side data after using the above conversion [namely (I16 value * 2.5)/32767]. I am getting a correction factor of approx 16 i.e RT side value = FPGA converted value *16.
I cannot understand this, Please explain if someone has expertise in this.

0 Kudos
Message 1 of 2
(4,494 Views)
Solution
Accepted by topic author charansai

Hey,

 

for the conversion refer to page 10 of the named manual.

The Value form the ADC has a range of 0 to 4096.

LSB = 5V / 2^12 = 1,22 mV

 

RT Value = FPGA I16 Value * LSB

Message 2 of 2
(4,471 Views)