Hi roseen,
You don't need either relays or digital potentiometer.
For this purpose, you can simply use a multiplexer, such as CD4051.

By the way, because of the voltage drop on diodes(Both Tip...