A tunable optical rail is embedded into the cavity of a nonlinear-polarization-rotation (NPR) mode-locked fiber laser to generate a sampling pulse with different repetition frequencies and realize bit-rate-adaptive software synchronous optical sampli