1、 摘摘 要要 全站仪与计算机之间的数据通信是测量人员通常面对的问题,涉及到全 站仪内存数据的正确下载、格式转换和有效管理等。本文重点介绍了全站 仪与计算机的数据通信概念、技术方法以及作为存储介质的数据库和数据 表设计。对于全站仪的通信方法、VB 语言基础和数据库的相关知识进行了 综述和分析,主要开展了数据库中数据表的创建、测后数据的有效提取和 存储管理的编程实践工作,采用 Visual Basic 语言的 MSComm 控件建立全 站仪与计算机之间的串行端口的联系,采用 DAO 数据库访问技术实现数据 的有效存储,采用有效的字符串处理函数和文件读写操作技术实现观测数 据的信息提取和格式转换。通
2、过对实测数据的转换分析验证,所编程序能 够实现全站仪数据的有效转换与存储。 关键词:数据通信,Visual Basic,MSComm,通信参数, DAO Abstract Total Station and data communication between computers is a measure of the problems for surveyors and are usually involved in the correct memory data to the total station download, format conversion and effective m
3、anagement. This paper focuses on the total station and computer data communication concepts, technology and methods as well as the storage medium of database and data table design. Method of communication for the total station, VB language based and database-related knowledge is summarized and analy
4、zed, mainly carried out to create the database table of the measured data after the Effective Extraction and storage management programming practice work, using Visual Basic language The MSComm control the establishment of Total Station and computer links between the serial port using the DAO databa
5、se access technology to achieve an effective data storage, efficient string handling functions and file read and write operation of information technology to realize the measurement data extraction and format conversion. Through the conversion of measured data validation, the total station data prog
6、rammed to achieve the efficient conversion and storage. Keyword: Data communication, Visual Basic, MSComm, Communication parameters, DAO 1 目目 录录 1 1 绪绪 论论 1 1 1.1 研究目的和意义 1 1.2 研究现状分析 1 1.3 本论文的主要内容 3 2 2 全站仪与计算机的数据通信基本知识全站仪与计算机的数据通信基本知识 5 5 2.1 通信形式 5 2.2 通信参数 8 2.3 RS-232 标准 . 10 2.4 全站仪的数据记录格式 . 11 3 3 软件构建语言软件构建语言 1515 3.1 VB 语言基础 . 15 3.2 MSCOMM控件 17 4 4 数据库数据库 2121 4.1 ACCESS数据库简介 21 4.2 数据访问对象 DAO 22 5 5 通信程序设计通信程序设计 2626 5.1 程序模块设计 . 26 5.2 数据流程 . 29 6 6 后记后记 3636 参考文献参考文献 37