added some comments on cal_*binary() functions
authorFrank Mori Hess <fmhess@speakeasy.net>
Wed, 30 Apr 2003 20:36:15 +0000 (20:36 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Wed, 30 Apr 2003 20:36:15 +0000 (20:36 +0000)
comedi_calibrate/README

index 3fca2193e8ed2126a104fa74b2d844134395e7fa..440dccce18a1e17402ca25a61af526cc018db8c7 100644 (file)
@@ -170,8 +170,22 @@ dof indicates that linear fitting should not be used.
 
 The functions cal_binary() and cal_postgain_binary() are used when
 the caldac dependence is highly non-linear.  It does a binary search
-in the range of the caldac to find a decent value.  Once a decent
-value is found, cal_fine() should be used, since the caldac dependence
-should be relatively linear in a small range around that value.
-
-
+in the range of the caldac to find a decent value.
+
+Notes by fmhess******************************************************
+I would use cal_binary() always, as opposed to cal1() or cal1_fine(),
+since it is the best algorithm.
+
+cal_relative_binary() is the same as cal_postgain_binary().  I prefer
+the more general name because the function is useful for more than
+just postgain offsets.  It adjusts a caldac so the difference between
+two observables is correct (although their absolute values may still
+be offset), which works for postgain offsets, but
+is also good for gain calibrations when the gain adjustment
+couples with the offset.
+
+cal_linearity_binary() was added for convenient calibration of
+analog output linearity on NI boards.  It should be fed 3
+observables that are well separated from each other.  It adjusts
+a caldac so that the ratio (obs3 - obs2)/(obs2 - obs1) is
+correct.