Aiming at a large quantity of data collection in ventilator monitoring and control system, the paper introduced an algorithm of real-time data collection and data compression for ventilator monitoring and control system. It described flow of data collection and principle of data compression and its flow in details. The experiment showed that the algorithm is stable and reliable, which could be used in ventilator monitoring and control system of coal mine.