Analog inductive sensors optimize distance between x-ray source and target in pipe quality control