06-24-2015 01:51 PM
Hello,
The data input into LabVIEW by my USB-1208LS is precise, but the analog input voltage values are quantized (there are only a few repeating values: 0.696 0.691 0.696 0.701 0.691 0.701 0.691 0.691, etc.). I am measuring the voltages of four photocells powered by the +5V of the USB-1208LS. Each photocell is measured in a different channel using the differental input mode. Is there some way to fix the quantization of the data?
I am not sure if this is a LabVIEW problem, but attached is my block diagram, in case I am not inputting the voltages correctly.
Thank you in advance.
Solved! Go to Solution.
06-24-2015 02:44 PM
06-24-2015 02:49 PM - edited 06-24-2015 02:50 PM
Thank you for your quick response!
From what I have found and used, Measurement Computing requires a VI of its own to aquire the data from the each of the channels separately, so right now I have four different tasks, each reading a single channel. I do not get any errors from my code, and it runs fine, other than the strange voltage readings.
06-24-2015 05:01 PM
06-24-2015 05:26 PM
On the +/-10 V input range the resolution of that device is about 5 mV, which is exactly what you are seeing. The resolution is calculated by taking the total voltage span across the range (20 V) and dividing by the number of steps or bins the A/D converter has over that range (2^12 = 4096). So, resolution = 20/4096 = 4.883 mV.
To get better resolution you need to use a smaller range (if your signal wil fit in a smaller range) or obtain a DAQ device with higher resolution, such as a 16-bit or 24-bit converter.
Lynn
06-24-2015 08:26 PM - edited 06-24-2015 08:29 PM
Dennis,
I appologize for posting on the wrong board. I am new to this and will be sure to not make that mistake again. I will look into using a single task with multiple channels. If that doesn't work, I will switch to the NI DAQ card to which I am more accustomed.
Lynn,
Thank you for your help. The poor resolution would account for the gaps in the data.