Advanced Optical Referencing for Waveguide Measurement System