Data acquisition and processing software of the spectrometer system for linear array CCD ( Charge Coupled Device) is introduced in this paper, which is analyzed and designed by UML( Unified Modeling Lan-guage) .In this design, multi-threading technology is used to record and process data in parallel and real-time, and ping-ponging buffer is used to synchronize data acquisition and data processing.Cypress′s USB driver is used to communicate between PC and spectrometer system including sending commands and receiving data.The data acquisition software is able to satisfy the requirements of the real-time data recording and dis-playing.%介绍了线阵CCD光谱仪系统多线程数据采集处理软件的设计,该设计采用统一建模语言( UML)进行分析。在设计中,多线程的运用使光谱数据的记录和处理显示并行,乒乓缓存及状态机的运用实现了数据获取、数据处理的协调同步。通信部分使用Cypress公司的USB驱动实现软件和硬件的对接。这些设计实现了光谱数据的快速处理并显示,能够满足光谱仪使用中实时保存、显示数据的需求。
展开▼