节点文献
利用VC++实现实时串行数据的接收、分离及动态存储
Reception and separating as well as dynamic storage of real-time serial data realizing by VC++
【摘要】 针对现场不定时间间隔发送来的轧制数据,利用计算机进行实时串行数据的接收和分离,并将此数据与数据库系统建立联接,实现数据的动态存储和显示。文中简述了用Windows下的通信API函数进行串行通信的一般过程,提出了利用参数选择窗口灵活设置通信参数的软件实现方法。并重点编程实现了利用自定义消息函数把接收到的实时串行数据进行有效分离、在通信时实现数据向数据库的动态转存,以及利用定时器技术实现串行数据在文档窗口的动态显示等功能。
【Abstract】 Aiming at rolling data that is sent at indefinite time intervals on the spot, a computer is used to accept and separate the real-time serial data. The conjunction between the data and a database system is built, so the dynamic storage and display for the data are realized. A common serial communication process using API function of Windows communication is expounded. A software realization method that flexibly sets communication parameters utilizing a parameter choice window is proposed. The functions to separate the real-time serial data received and achieve the dynamic storage for the data to database utilizing the user-defined-message function during communication, as well as display the serial data dynamically in the document-window realizing by the timer technology are programmed and realized.
【Key words】 call-back function; user-defined-message function; timer; Windows communication API function;
- 【文献出处】 冶金自动化 ,Metallurgical Industry Automation , 编辑部邮箱 ,2004年06期
- 【分类号】TP311.52
- 【被引频次】5
- 【下载频次】333