In your software (e.g., HiView), select the "Calibration" tool and draw a line matching a known distance on the ruler (e.g., 1mm).
100KHz (suitable for most stepper and servo motors). Input Voltage: 12V–24V DC. bsmce04u-pp manual