There are two methods of obtaining information about your lung status with exercise.
A simplified version involves breathing into a plastic tube called a peak flow meter. The technician will ask you to breathe in as deeply as possible, take the device in your mouth and blow out as strongly and rapidly as possible. The device will report a number (called your forced expiratory flow) that can be compared to predicted values based on your gender, age and height. Three measurements will be taken before and after you exercise on the treadmill.
Alternatively, if full pulmonary function tests are indicated, you will be asked to breathe into and out of a tube that is attached to a machine called a spirometer. The machine will take measurements of the amount and rate of air that you breathe in and out over a period of time. You will wear a clip on your nose to close your nostrils and be instructed by the technician when to take a deep breath and how to exhale. These measurements will be taken before and after your exercise.