A system and method for automatically selecting among a plurality of pacing modes
based upon capture detection. Patients suffering from heart failure may be optimally
treated with different resynchronization pacing modes or configurations. By detecting
whether capture is being achieved by a particular configuration or mode, a device
is able to automatically switch to one that is both optimal in treating the patient
and is successful in capturing the heart with pacing pulses.