How to Change Range Finder pin on the fly

We can set the rangefinder pin in the RNG_FND params on the mission planner, 1 for A1 on the APM. Is it possible to switch to another analog pin if one has more than one sensors(rangefinder) attached to the arducopter on the fly? Is there any script that can be run for this purpose or a mavlink/dronekit/ command for that.

I want to have more than 1 sensors attached and want to switch receiving data among them. for Example, I am receiving data currently fro the sensor at pin A1, Now I want to start receiving rangefinder data from sensor on the pin A2. How to do this?