摘要
在小型磁偏转质谱计的调试过程中,需要由质谱计上位机软件向下位机发送间接指令并实现扫描控制和对离子流的采集、处理、存储和分析。基于此,本文采用面向对象的程序设计方法,在VC++6.0环境下对质谱计的上机位机软件进行设计与实现。质谱计上位机软件通过CAN(Controller Area Network)总线与质谱计下位机进行通信,实现对下位机的控制和数据处理。利用质谱计上位机软件可以替代大量冗杂的人工处理数据的工作,而且可以数据实时采集存储,可以进行随时再现、分析、从中获得有用的数据,避免数据的丢失。调试结果表明,质谱计上位机软件设计正确,具有很强的工程实用性。
In the testing of the miniature magnetic sector mass spectrometer, the upper-computer software sends indirect in- structions to lower-computer to achieve scanning control, the ions current collection, processing, storage and analysis. This paper uses the method of object oriented program design, in the vc++ 6.0 programming environment for mass spectrometer upper-computer software design and implementation. The upper-computer software communicates with lower-computer through the CAN bus, to achieve controlling lower-computer and data acquisition. The mass spectrometer utilizes upper-soft- ware acquisition and processing data, substitute a large amount of miscellaneous artificial treatment work of datum. It can store data in real time, reproduce and analyze data at any time, get the useful data from it, avoid the losing of the data, im- prove the success rate of the experiment. Through the testing results, the upper-software designs correctly and has strong en- gineering practicability.
出处
《真空与低温》
2013年第1期46-49,共4页
Vacuum and Cryogenics
关键词
质谱计
上位机软件
数据采集
CAN总线
Mass Spectrometer
Upper-computer software
Data Acquisition
CAN bus