Another way might be to use a digital potentiometer to feed it, then set the potentiometer using the DIP switch.