journal6 ›› 2007, Vol. 28 ›› Issue (4): 50-54.

• 物理与电子 • 上一篇    下一篇

基于VC++和数据库的串口监控系统软件的开发

  

  1. (北京航空航天大学 仪器科学与光电工程学院,北京 100083)
  • 出版日期:2007-07-25 发布日期:2012-06-15
  • 作者简介:李成贵(1964-),河北荆州人,北京航空航天大学副教授,博士,主要从事微纳米表面测量和表征技术,计算机测量和控制,智能仪器等研究.
  • 基金资助:

    国防“十五”重大专项建设资助项目(995)

The Software Development of the Serial Monitoring System Based on VC++ and Database

  1. (School of Instrument Science and Opto-Electronics Engineering,Beijing University of Aeronautics and Astronautics,Beijing 100083,China)
  • Online:2007-07-25 Published:2012-06-15

摘要:讨论了Windows环境下实现串行通信的3种基本方法,针对串口监控系统的实际情况,在VC++环境下,分别采用Windows API函数和MSComm控件开发串行数据库通信软件,实现前方数据的实时采集与存储,分析比较3种方法的优缺点.系统采用目前实时系统中广泛使用的Access2000关系型数据库作为管理数据的工具,具有强大的动态数据交换,对象链接和嵌入特性以及网络共享和ODBC特性,可快捷高效的进行数据的管理.数据库模块的设计采用标准的SQL结构化查询语言,选用ODBC数据库访问技术,存储速度快,内存消耗少,操作简单.

关键词: 串口通信, API, MSComm控件, CSerialPort类, 数据库, ODBC

Abstract: Three basic methods of serial communication in windows environment are discussed.The software of serial communication and database are developed using windows API functions,MSComm control seperately with VC++.They succeed in data collecting and storing.Access2000 database of relation model is used by the system as tools for storing data which has strong capacity of dynamic data exchanging,good object interlinking properties,good internet sharing and ODBC properties.It can deal with data of the system efficiently.The standard SQL structured inquire language and ODBC database access technology are adopted by the database modules of the system that has very high memory speed and occupies very little memory space.

Key words: serial communication, API, MSComm control, CSerialPort class, database, ODBC

公众号 电子书橱 超星期刊 手机浏览 在线QQ