Implement autoranging for analog channels