LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a 12 bit resolution sensor simulation

Solved!
Go to solution

Does anyone know how to do this?  Am I missing something in Labview, I don't fully understand the 12 bit resolution part of a sensor either.... so this will help.

 

Thanks,

Chris

0 Kudos
Message 1 of 3
(2,287 Views)

I think I may have gotten this.  Analog to Digital waveforms, using 12 bit resolution.  Not sure if this is correct.

0 Kudos
Message 2 of 3
(2,274 Views)
Solution
Accepted by topic author northwood

@northwood wrote:

Does anyone know how to do this?


Yes. You just generate a random integer in the range of 0 to 4095 (2^12 - 1).

 


I don't fully understand the 12 bit resolution part of a sensor either.... so this will help.

This refers to the width of the "slices" that you can have for representing a floating point value as an integer. 12 bits gives you 4096 slices, so for a 5V full-scale signal, each "slice" corresponds to approximately 1.2mV. Thus, you would be unable to represent, say 0.5mV, as this would be returned as simply 0, since the next available step from 0V is 1.2mV.

 

I would suggest spending some time in NI's tutorial section of data acquisition: http://zone.ni.com/devzone/cda/tut/p/id/4523. The one you probably want is Analog Fundamentals -> Analog Sampling Basics.

0 Kudos
Message 3 of 3
(2,264 Views)