Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I change the resolution of ADC from 16 bits to 12 bits?

Solved!
Go to solution

Hi,

 

I am using NI USB-6211 DAQ device. For one of my application I need to use DAQ device to convert the analog input to data samples. Since, I am mimicking the function of a particular MCU, I need to use 12 bits ADC resolution instead of 16 bits resolution which this device has. Is it possible somehow to use this device and get 12 bit resolution? 

Currently I am using DAQExpress and I am not familiar with LabView, but I am open to suggestions related to LabView as well.

Thank you! 

0 Kudos
Message 1 of 13
(3,898 Views)

If you read raw values (that is possible with DAQmx within LabVIEW) you could divide the results by 16 (or shift the results 4 bit right).

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 2 of 13
(3,863 Views)

@JensG69, I tried to use logical shift function in LabView...but all I can see is 0...I am not sure why, if you can help me with that. Also, I don't think dividing raw data (integer values) by 16 will produce the 12 bit data because that's scaling...but 12 bit/16 bit is related to the resolution of the ADC.

Before sending the data to logical shift function, I can see the output properly on waveform graph and I am able to log the data however, when this data is passed on to logical shift function it just gives 0.
I have attached my project. Thanks!

0 Kudos
Message 3 of 13
(3,806 Views)

You cannot change the resolution of ADC from 16-bit to 12-bit, the only option is to discard the resolution of the extra 4 bits at software level.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 4 of 13
(3,797 Views)

@Santo_13, that is what I am trying to do here in my project, but can't figure out why it is not working.

0 Kudos
Message 5 of 13
(3,789 Views)

OMG shifting 4 bit (and ignore the 4 bits) or dividing by 16 for integer values is the same, and yes, you need to adapt the scale.

 

Or you AND all unsigned integer value with 0xF0 ....:D

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


Message 6 of 13
(3,783 Views)

Okay, I did not get what you mean by "adapt the scale"? Can you explain more? 

0 Kudos
Message 7 of 13
(3,741 Views)

Adapt the scale means changing the V/LSB multiplier.

 

For example, for a +-10V range with 16-bit ADC, each LSB corresponds to 305.176uV

whereas, for the same +-10V range with 12-bit ADC, each LSDB corresponds to 4.883mV

 

So, the technique has to be read raw values from DAQ at 16bit, discard the lower 4-bits, now scale it with a new LSB value.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 8 of 13
(3,733 Views)

Thank you Santhosh for the reply. I am sorry I don't have much experience with LabView. I understand how each LSB corresponds to what value. But I couldn't find how to change this LSB value. Also I am unable to discard last 4 values. 😞

0 Kudos
Message 9 of 13
(3,723 Views)
Solution
Accepted by topic author averagejoeb

I hope this helps

santo_13_1-1625099180135.png

 

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 10 of 13
(3,714 Views)