A method and system for mapping tissue and producing lesions for the treatment of cardiac arrhythmias in a non-thermal and optimal manner, minimizing the amount of energy required to selectively stun or ablate the target tissues. Energy may be delivered only at the moment(s) of best device position and proximity of an electrode to target tissue, and only during a time in the cardiac cycle determined to be optimal for reversible or irreversible effects. A method may include determining timing of the cardiac cycle and an optimal time within the cardiac cycle for energy delivery, evaluating proximity between at least one energy delivery electrode and the target tissue, and delivering pulsed field energy from the at least one energy delivery electrode to the target tissue when, during the optimal time for energy delivery, the at least one energy delivery electrode is in close proximity with the target tissue.