Weaning patients off ventilation in an ICU is sometimes difficult, because of three major inter-related etiologies: impaired lung, heart and diaphragm function. In this context, ultrasonography during tests to wean patients off ventilation could make it possible to diagnose cardiac dysfunction, a loss of pulmonary aeration or diaphragm dysfunction and thus reduce the number of failures at extubation.