摘要:本辐射报警仪上位机管理软件在Visual Studio 2010开发环境下,使用VB.NET程序设计语言来编程。结合.NET Framework类库中提供的SerialPort 类来编写接收来自辐射报警仪下位机发送的数据。实现了对下位机数据的采集、存储、打印,进而对存储数据的分析来达到报警辐射值的目的。本上位机管理软件主要通过串行通信方式与下位机进行数据通信。串行通信不仅线路简单而且还具有传输距离长、抗干扰能力强、应用灵活等优点。计算机串行通信在数据通信、故障检测、计算机远程监控等方面有广泛的应用与利用价值,特别是在Windows下的串口通信可以充分利用Windows下的软件资源优势,实现多任务条件下对外部的数据传输、信息收集和处理。随着计算机通信技术的日趋成熟,通过上位机来控制下位机的运行、文护与优化得到了广泛的应用。本辐射报警仪就是这样一个应用实例,我们可以通过串行通讯方式使上位机与辐射报警仪下位机进行通讯,进行参数设置和实验数据采集与保存。5577
关键词: Visual Studio 2010;串口通信;VB.NET;波特率
The radiation alarm instrument PC management software based on VB.NET
Abstract: The radiation alarm host computer management software in Visual Studio 2010 development environment, using VB.NET programming language programming. Combined with the.NET Framework class libraries provide SerialPort class to write from a radiation alarm receiving the data sent the machine. To realize the collection, storage, print to MCU data, and then to store data analysis to achieve the purpose of alarm value of radiation. The PC management software mainly through serial communication with the computer data communication. The advantages of serial communication is not only simple lines and has long transmission distance, strong anti-jamming capability, flexible application. Computer serial communication with extensive application value in the data communication, fault detection, remote computer monitoring and other aspects, especially the serial communication under the Windows can make full use of the resource advantages of the Windows software, realizing multi-duties conditions of external data transmission, information collection and processing. With the development of computer communication technology matures, optimization of a wide range of applications running, and maintenance through the computer to control a machine. The radiation alarm instrument is such an application example, we can through the serial communication between PC and radiation to the communication alarm machine, set parameters and experimental data collection and preservation.
Keywords:Visual Studio 2010; Serial communication;VB.NET; Frequency
目 录
1 绪 论 1
1.1 课题研究背景 1
1.2 辐射报警仪上位机管理软件国内外研究现状 1
1.3 课题研究的目的和意义 2
2 开发语言与开发环境简介 3
2.1 VB.NET和.NET Framework 3
2.2 Visual Studio 2010 简介 3
3 串行通信 5
3.1 串口通信接口定义 5
3.2 串行通信协议 5
3.3 串行通信的基本参数 8
3.4 实现串行通信的方法 10
3.4.1 SerialPort类 11
3.4.2 SerialPort类使用 13
4 数据的处理 19
4.1 存取文件 19
4.1.1 文件的保存 19
4.1.2 文件的读取 20
4.2 打印文件 21
5 上位机软件界面的设计 25
6 上位机软件的调试 29
总 结 31
致 谢 32 基于VB.NET的辐射报警仪上位机管理软件设计:http://www.751com.cn/tongxin/lunwen_2658.html