The purpose of this study is to compare a new mode of mechanical ventilation (NAVA, or Neurally adjusted Ventilatory assist) with a traditional mode (Pressure Support ventilation) on its the ability to detect patients ready for extubation (liberation from mechanical ventilation).