Weaning from invasive mechanical ventilation is one of the major clinical problem especially ion those patients with a pre-existing chronic respiratory disease and chronic hypercpania. Up to 60% of the ventilatory time is devoted in these patients to the process of weaning.