The process is purely mechanical: Turning the switch changes the position of the valve, selecting which tank's fuel pump receives power and thus which tank feeds the engine. There's no sophisticated computer control involved. If you have a problem switching tanks, the issue likely lies within the switch itself, the wiring to the switch, or the valve mechanism in the fuel system.