multiplexer programming for calibration system

Hi,

Im currently doing my final year project titled online self-calibration for RTD sensor using multiplexer. To make it short and save your time, I will briefly explain about the project. Basically, this project is using multiplexer to select one reference voltage at one time, which I need to program it using the Arduino. The multiplexer will select each switch which represent the voltage that the RTD supposed to supply. So, first thing, I need help to program the multiplexer. And second one, to do an algorithm for the calibration of the system. At each switch, it should produce a certain voltage output, for example at X1 will be 6V. So, if let say X1 is switched ON, but the output voltage produce at the end of the circuit is not 6V, thus, the algorithm will fix it. if anybody has an idea,it would be great if you guys can share it with me. But it is not really a problem as I have a rough idea about the algorithm.

BUT i really need help on the multiplexer coding. Pretty please. I have attached my circuit design in case it is needed. Thank you!

I am not sure where the Arduino fits in your scheme.

Hello,

The multiplexer will select each switch which represent the voltage that the RTD supposed to supply.

What is an "RTD"?

I have attached my circuit design in case it is needed.

You forgot it!

Paul