Autonomous x-ray scattering