摘要
研究并设计了一种基于VB的温室温湿度实时监测上位机系统。该系统能实现对现场采集的温湿度数据进行实时监测,并针对不同的作物,当环境温湿度参数越限时,启动声音报警,以便管理员介入进行自动或手动调控。提供温室作物最佳的温湿度生长环境,提高温室的自动化程度和生产效率。该系统应用软件工程的设计思想,以Microsoft Visual Basic 6.0为开发环境,Microsoft Access为后台数据库,采用模块化的设计方法,利用面向对象、数据库等技术完成系统数据的实时显示、信息和数据的存储、历史数据查询、统计分析、打印和异常报警等功能,实现了上位机系统的监测任务。介绍了系统的总体设计和各功能模块的设计,说明了该系统的主要功能,并给出了系统的运行界面和部分代码,在系统和数据库安全方面也采取了一定措施。
A VB-based real-time monitoring host computer system of temperature and humidity was studied and designed. Real-time monitoring of temperature and humidity data collected in the field could achieved, and for different crops, when envi- ronmental temperature and humidity parameters limit was exceeded, sound alarm was startup, so that an administrator intervened automatically or manual regulation. It would provide optimum temperature and humidity environment for growth of greenhouse crops, and degree of automation and production efficiency of greenhouse was improved. Design idea of software engineering was applied. Microsoft Visual Basic 6.0 was development environment. Microsoft Access was the back- end database. Using modu- lar design method and technologies of object-oriented and database, functions such as real-time display of system data, informa- tion and data storage, historical data query, statistical analysis, print and abnormal alarm, were completed, and upper ma- chine system monitoring tasks were realized. Overall design of the system and design of each functional module were described. Main function of system was explained. Operation interface and part of code of system were provided. Some measures for system and database security were also taken.
出处
《农业工程》
2016年第3期21-26,共6页
AGRICULTURAL ENGINEERING
关键词
温湿度
监测
上位机
软件工程
Temperature and humidity, Monitor, Host computer, Software engineering