Software configured to be executed by a processor to cause performance of a method of ejecting ions from an ion trap, which is comprising a plurality of electrodes for ion trapping, the plurality of electrodes comprising an ejection electrode and a plurality of further electrodes elongated in a longitudinal direction L for ion trapping, wherein the ejection electrode comprises an opening through which ions in the ion trap can be ejected in an ejection direction E, wherein an angle α between the longitudinal direction L and the ejection direction E deviates from 90° not more than 15°, wherein RF voltage is supplied to the ion trap by a primary winding connected to an RF power supply, a secondary winding coupling with the primary winding transforming the RF voltage of the RF power supply and supplying the transformed RF voltages to the ejection electrode and a secondary windings group coupling with the primary winding transforming the RF voltage of the RF power supply and supplying the transformed RF voltages to the further electrodes, a first DC supply and a second DC supply, the method comprising:
- switching off the RF voltage supplied to the ejection electrode and the plurality of further electrodes of the ion trap;
- and
- applying in a time period a first DC voltage via the secondary winding provided by the first DC supply to the ejection electrode to pull ions in the ion trap to the opening of the ejection electrode and, during the time period, also applying a second DC voltage provided by the second DC supply via the secondary windings group to at least 70% of the plurality of further electrodes to push ions in the ion trap to the opening of the ejection electrode.