Switching field from series to shunt excitation or vice versa