In the paper, a problem of real-time input design, where the spectral characteristic of the external excitation signal is optimized considering the fixed bound on the ellipsoidal constraint applied to the quality measure of the estimated model, has been presented. We designed a compensator close to the complementary sensitivity function such that the resulting closed-loop system is stable and guarantees robust performance. The contribution of this work comprises a comparison of the KYP and frequency grid methods for the worst-case minimization between the identified plant and all models in the uncertainty region. It has been noted that the input design problem considering the frequency grid is far more numerically robust than the KYP method and guarantees that more than 90% of the estimated model parameters are clustered inside the assumed confidence region. The proposed approach is verified by numerical examples, and the sensitivity of the input spectrum design to the estimates of model parameters is discussed.