if you can afford a little time gap between consecutive measurments and your signal is not transient,
you can always take a short 'test-measurment' before, with max. gain,
then calculate the optimal gain setting which will fit without overload
and then use that value for the actual measurment.
simple way of 'autoranging'
🙂
--
Once the game is over, the king and the pawn go back into the same box.