摘要
本文介绍压力和位移两路数据的实时采集、曲线的绘制、显示和存储。利用VB编程实现测控软件。该软件具有实现数据的接收、实时曲线绘制、显示和用数据库实现数据存储等功能。实时数据的接收采用串口通信,用VB提供的MSComm通信控件编写串口的通信程序,实现PC与单片机的数据交换;实时曲线的绘制采用两点定一直线的方法,用VB基本的绘图方法line方法来绘制;数据的显示和存储用VB的Active X数据对象MSHFlexGrid控件实现数据表格对实时测量数据的显示和ADO控件对数据库的管理。
This paper describes two-channel real-time data acquisition, drawing of the real time curve , display and storage of the pressure and displacement. The measure and control software with VB has some functions, such as data receiving, real-time curve drawing, display and data storage using database. The receiving of the real-time data using serial communication. Exploiting offered by VB MSComm communication controlling part writes mouthfuls of communication procedure which can complete the data exxhange between PC and one-chip computer. The real time curve has been drawn will be the use of two methods of line, using VB basic line drawing method approach to mapping. Display and storage of data in VB using Active X Data Objects MSHFlexGrid control data for real-time measurement data form the display and ADO controls the management of the database.
出处
《电子测试》
2009年第9期70-73,共4页
Electronic Test