Abstract:In order to solve the problem that the battery of the medicine vending machine cannot be replaced and the medicine cannot be replenished in time, a real-time monitoring system is designed, which is mainly composed of battery, pressure sensor, signal collection and transmission, main control unit and cat1 modules and so on.The main control unit can measure the remaining quantityin the medicine box and the remaining power of the battery by collecting the output voltage of the pressure sensor and the battery.When the remaining amount of medicine or battery power is low, the information is sent to the operators through the cat1 module. The system is simulated by the co-simulation function provided by LabVIEW and Multisimwith results showing that this system can effectively monitor battery’s power and the amount of the medicine in real time.With the additional functions of loading and shutdown system for abnormality, this system can be effectively applied to the portable vending machines.