LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulate a lower ADC resolution

Hi all,

 

I am working with the NI 9235 strain gauge module, which has a 24bit ADC resolution. This is great for bench testing, but in the end application I will probably use an embedded system with a lower input resolution. Is there a way that I can simulate a 10bit or 16bit ADC by disregarding the additional 14 or 8 bits in LabVIEW?

 

Thanks!

 

Andrew

0 Kudos
Message 1 of 2
(2,214 Views)

If you have the raw ADC data as an integer, simply drop the logical shift primitive (quick drop type "Logical Shift"). Wire your ADC codes to the "X" input, create a constant on the "Y" input and set that constant to -14 or -8. The output will be now be 10 or 16 bits. However, this will be an EXTREMELY accurate 10/16bit A/D, you may wish to randomize noise onto it if you are trying to simulate a system.

Charles Chickering
Architecture is art with rules.

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