摘要
以面向对象编程为指导思想,设计了用于数据采集与处理的软件结构,该结构分为四层框架,明确了各个层次包含的的功能。将曲线绘制和控制算法实现为.NET程序集,保证了曲线绘制的可重用性和控制算法的动态加载。应用三个线程实现了数据采集与处理、实时曲线绘制和人机界面交互三个主要功能的同步执行。通过在程序和数据库之间加入数据存储中间层,避免了频繁与数据库通信产生的耗时。实验结果表明,该软件保证了测控过程的实时性、灵活性和安全性。
According to object-oriented programming,an architecture of level data acquisition and processing was designed and implemented in this paper.This architecture is designed into four frames,and the functions of each frame is defined.The functions of curve drawing and control algorithms are sealed into .NET assemblies which could ensure the reuseability of curve drawing and the dynamic loading of control algorithms.The Synchronous execution of data acquisition and process- ing,real-time curve drawing and the human-machine interface interaction is realized by three threads.An intermediate layer for data storage is added between the software and database which could avoid the time-consuming generated by the frequent communication with database.
出处
《工业控制计算机》
2012年第11期6-8,共3页
Industrial Control Computer
关键词
C#
面向对象编程
多线程
数据采集
曲线绘制
C#,object-oriented programming,multi-threading,data acquisition,curve drawing