please dont rip this site

Data Link Error Detection / Correction Methods

Compression@

See also:

Books

Patents

Scott Dattalo

How to measure linearity error.

1) Collect a whole bunch of data and record a) the voltage applied and b) and the converted digital value. You also should collect several samples at each voltage value and use the mean of the digital values to represent converted digital value. There's another test for measuring the spread.

2) Find the least square's curve fit of the data. In other words, find the line that best fits the data.

3) Find the sample that most deviates from this line.

The line found by the least square's curve fit is of the form:

   y = m*x + b

where
 x = true value of the input signal (the applied voltage)

 y = expected value when the true value is applied (the actual value is
     what you measure)

 m & b are the slope and intercept of the line and are calculated:


m = [s(x) * s(x * d) - s(x*x) s(d)] / den

b = [s(x) * s(d) - n * s(x * d) ] / den

den = s(x)*s(x) - n * s(x*x)

where,

d = digitized value
n = total number of samples

and
          n
        -----
        \
s( ) =  /     (   )
        -----
         i=1

Once you have m and b, you can perform step 3 by running the applied voltage through the line representing the data and comparing the expected value output with the value you actually measured. The Linearity Error is then:


L = max( ( d - y ) / x_fr ) * 100%

where x_fr is the full range of the data, or 4096 for a 12-bit A/D.

Like I said earlier, I've got an octave program to do this. If anyone wants it, drop me a line. You probably can find a lsf function in excel too.

See also:

Questions:

See:

Code:

Archive:

Comments:


file: /techref/method/errors.htm, 8KB, , updated: 2008/8/28 15:25, local time: 2008/9/4 21:50,
TOP NEW HELP FIND: 
38.103.63.61:LOG IN
©2008 PLEASE DON'T RIP! DO: LINK / DIGG! / MAKE!

 ©2008 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it!
<A HREF="http://www.piclist.com/techref/method/errors.htm"> Error Detection / Correction Methods</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be reviewed) Just type in the box and press the Post button. (HTML welcomed!): A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Did you find what you needed?

  PICList 2008 contributors:
o List host: MIT, Site host massmind.org, Top posters @20080904 Apptech, Jinx, Xiaofan Chen, olin piclist, Alan B. Pearce, Vitaliy, William \Chops\ Westfield, Tamas Rudnai, JonnyMac, Cedric Chang,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Shultz Electronics, Timothy Weber, on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
  'What can I do?' - SiCKO

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .