I bought a LASER displacement sensor off eBay with the idea of scanning parts. This sensor outputs the very common 4-20 milliamp. A galil board needs 0-10 volts. I started with a very simple resistor for the conversion but found a ripple in the voltage reduced accuracy. So a EE friend designed the attached 4-20 milliamp to 0-10 volt converter. Also attached is a graph of this Omron sensor performance.
Next I wrote code for my mill's .cbk file. See the attached text file. This code uses G101 to record LASER displacement sensor values to a file. The format of this Gcode is G101 X_ Y_ I_ F_ X,Y,F work just like G1 in any Gcode. I is the increment between laser readings. To scan a part, write a Gcode file to run the laser over as many passes as needed. Parametric programming (looping and incrementing X or Y) can keep this program fairly small.
So far, I've scanned as fast as 4ipm with readings every 0.002" with good results.
Enjoy
Karl