摘要
PT仪数据采集系统涉及到大数据量的采集显示以及大数据量的导入导出。PT仪与上位机采用串口通讯方式。通过设置适当的Mscomm控件属性值,利用定时器实现数据的采集与显示。针对VB控制Excel导入导出数据,常用的方法效率低下,采用数据文件实现快速导出;通过一个具有二维数组性质的变量实现数据快速导入。有效地提高了PT仪数据采集系统的人机交互能力。本设计已运用于采集实验中,效果良好。
PT instrument data acquisition system in display and import/export of large numbers of data. PT instrument communicates with Host Computer by the wayof serial communication. Realize collection and display of data by setting properly property of Mscomm control and using Timer. AS the common method which VB controls Excel to realize data import or export is less efficient. Data file is used to realize export quickly; By a variant with character of two dimension array is used import quickly. This methods effectively promotes the interaction between computer and person. The design has been used in acquisition experiment, and the result is good.
出处
《自动化与仪器仪表》
2009年第5期102-103,109,共3页
Automation & Instrumentation