A method for studying respiratory functions in awake or anesthetized patients.