fast and reliable range monitoring method is required to take full advantage of the high linear energy transfer (LET) provided by therapeutic ion beams like carbon and oxygen while minimizing damage to healthy tissue due to range uncertainties. Quasi-real-time range monitoring using in-beam positron emission tomography (PET) with positron-emitting isotopes of carbon and oxygen is a promising approach. The number of implanted ions and the time required for an unambiguous range verification are decisive factors for choosing a candidate isotope. An experimental study was performed at the FRS fragment-separator facility of GSI Helmholtzzentrum für Schwerionenforschung GmbH, Germany, to investigate the evolution of positron annihilation activity profiles during the implantation of 14O and 15O ion beams in a PMMA phantom. The positron activity profile was imaged by a dual-panel version of a Siemens Biograph mCT PET scanner. Results from a similar experiment using ion beams of carbon positron-emitters 11C and 10C performed at the same experimental setup were used for comparison. Owing to their shorter half-lives, the number of implanted ions required for a precise positron annihilation activity peak determination is lower for 10C compared to 11C and likewise for 14O compared to 15O, but their lower production cross-section makes it challenging to produce them with intensities of therapeutical needs. With a similar production cross-section and a 10 times shorter half-life than 11C, 15O provides a faster conclusive positron annihilation activity peak position determination for a lower number of implanted ions compared to 11C. We conclude that 15O is technically the most feasible candidate among positron emitters of carbon and oxygen for quasi-real-time in-beam range monitoring in ion beam therapy. The study also demonstrated that 15O beams of therapeutical quality in terms of purity, energy, and energy spread can be produced by the in-flight production and separation method.