A simple on-line system employed in diffraction experiments