节点文献

基于PDA的原子荧光光度计控制系统的研究与开发

Research and Development of Control System for Atomic Fluorescence Spectrometer Based on PDA

【作者】 乔艳明

【导师】 田地;

【作者基本信息】 吉林大学 , 测试计量技术及仪器, 2008, 硕士

【摘要】 智能掌上设备和无线科技的迅猛发展对仪器控制领域产生了深刻的影响,利用集合了无线通信技术的PDA来控制仪器的方式弥补了传统台式计算机通过串口控制仪器存在的移动性能差、布线困难等不足,充分发挥了人的智能和机器智能协同工作的优势。本文利用PDA通过蓝牙无线通信方式实现对原子荧光光度计的控制正是基于上述考虑提出的。论文主要开发并实现了以下几方面内容:在对北京科创海光仪器有限公司生产的AFS-3100型双道原子荧光光度计PC控制系统调研的基础上实现该控制系统从PC机到PDA的移植。完成Windows Mobile 5.0系统下基于.Net Compact Framework托管代码的智能设备应用程序开发;通过蓝牙管理器实现PDA与仪器的蓝牙配对连接后,根据该仪器的通信接口协议由虚拟串口实现对仪器的控制和操作,其中包括联机通讯、仪器自检、仪器条件设置和测量相关等模块;根据原子荧光光谱分析原理对双道初始测量数据进行相关数据处理,显示并保存最终测量结果,实现了利用PDA对AFS-3100进行现场控制、数据采集和处理等功能。本系统现已在北京科创海光仪器有限公司测试运行。

【Abstract】 Atomic fluorescence spectrometer has been widely used in Environmental protection, water quality monitoring, food hygiene, disease control, and other fields in our country, and it has become a national standard method of heavy metals detection in the disease control, food safety, drinking water and mineral water fields. However, as the instrument relies on the traditional desktop computer control mode through serial port, it has the deficiency of poor mobility and hard wiring in the place where scene environment is complex. For this reason, take advantage of portable mobile control technology and wireless communication technology to control the equipment, gives full play to the advantage of the mobility of PDA and the wireless communication of Bluetooth, creates a work pattern of controlling and accessing information of equipment anytime and anywhere, gives full play to the advantage of the people’s intelligence and intelligent equipments working together. The main task of this paper is to design and implement the top software control system on the PDA using the wireless communication of Bluetooth for AFS-3100 atomic fluorescence spectrometer, a production of the BEIJING KECHUANG HAIGUANG INSTRUMENT Co., Ltd.This paper based on. Net Compact Framework technology, designed and implemented the control system running on the Windows Mobile operating system for AFS-3100 atomic fluorescence spectrometer, successfully transplanted the main functions of the instrument’s control system from desktop to the PDA. The system mainly consists of three parts: the establishment of Bluetooth connectivity between PDA and AFS-3100, the control procedures of the instrument on PDA, and data processing.1、The control system uses the Bluetooth manager which the operation system includes to search and connect Bluetooth devices, takes advantages of the SerialPort operation class offered by .Net Compact Framework to control the Bluetooth virtual serial port in the virtual serial environment built by the RFCOMM serial simulation protocol in the Bluetooth protocol stacks, so as to complete the wireless control based on Bluetooth virtual serial port. .Net Compact Framework is the subset of .Net Framework full-featured version, inherits .NET Framework’s common language runtime architecture for running managed code, provides the interoperability of application procedures and personal mobile devices (Windows CE operating system). .Net Compact Framework offers multiple methods of the Read and Write method supported by the SerialPort class to read and send data in the buffer. Use the control system of AFS-3100 to send parameters、detect samples and control operations must comply with the communication protocol of the instrument, this paper uses the query method to receive the data of AFS-3100 so as to resolve the data losing phenomenon may be happened incidentally in the event driven method.2、The control procedures of the instrument on PDA is the operating and management area of the whole instrument control system. It is in charge of equipment performance testing, measurement conditions settings, measurement process control and displaying and preserving the measurement results. The whole process are all based on the SerialPort class offered by .Net Compact Framework to implement the parameters sending and data receiving through virtual serial port. According to the PC control system of AFS-3100, designed and implemented the PDA control system of the instrument, complied the transplant of the control system successfully. Among the function modules, the linking communication module takes charge of the Bluetooth connectivity between PDA and AFS-3100; the equipment self-inspection module contains gas circuit self-inspection, intermittent flow circuit system self-inspection and automatic sampler self-inspection; the instrument work conditions settings takes charge of setting the instrument conditions, measurement conditions, intermittent flow procedure conditions, automatic sampler parameter and standard sample parameters of A/B channel, it is the necessary part to operate the instrument; the measurement of standard blank and sample black, drawing standard curve and the measurement of sample implement the control of AFS-3100. The storage and call of data uses the SaveFileDialog class and OpenFileDialog class provided by .Net Framework. The control system uses a fixed text format to preserve the measurement results every time. User selects the relevant file and call it will open the file and display the data in the right place.3、Atomic fluorescence spectroscopy method belongs to relative measurement method, needs to identify the quantitative relationship equation between the density of tested element and the fluorescence signal intensity detected by the instrument. Based on the known equation, according to the magnitude of the fluorescence signal intensity from the sample detected by the instrument, the data processing module will calculate the density of the element in the sample. In the practical work, generally uses the regression analysis method to process the initial data provided by AFS-3100, then sets up the regression equation between the density of tested element and the fluorescence signal intensity, and at last obtain the quantitative relationship equation. In the process of a certain measurement the control system processes the initial data returned from the instrument in real-time, then draws the simulation monitoring curve; when this measurement finishes, it will calculate the result of the sample measurement based on the standard curve drew by an order linear regression algorithm or second-order non-linear regression algorithm. The precision algorithm and the detection limit algorithm of the instrument are relational with the performance of the instrument. They separately represent the detection ability and the stability of the instrument, are important technical parameters of Atomic fluorescence spectrometer.The control system referred to in this paper is applying and testing in the BEIJING KECHUANG HAIGUANG INSTRUMENT Co., Ltd. The system’s inadequacy includes the following points: depends on the Bluetooth manager which the operation system includes to search and connect with the instrument’s Bluetooth module, user should build up the Bluetooth connection themselves before using the system. In addition, the resource of the PDA is limited; repeatedly use of the controls influence the start-up time of the system; and how to display the data much reasonable on the showing forms are all needed to be improved in future work.

  • 【网络出版投稿人】 吉林大学
  • 【网络出版年期】2008年 11期
  • 【分类号】TP273;TN929.5
  • 【下载频次】109
节点文献中: