纺织品光学性能检测系统多线程串口通信方法  被引量:1

A Multithreading Serial-Port Communication Method for Test System of Textile Optical Properties

在线阅读下载全文

作  者:陈本永[1] 韩伟智[1] 张丽琼[1] 蔡晓晰[1] 

机构地区:[1]浙江理工大学纳米测量技术实验室,浙江杭州310018

出  处:《测试技术学报》2008年第4期354-358,共5页Journal of Test and Measurement Technology

基  金:浙江省科技攻关计划重点项目(2006C21059)

摘  要:结合纺织品光学性能检测系统的开发实践,提出了一种基于VC++多线程串口通信的实时数据采集系统的设计和实现方法.在主线程的基础上,创建了两个工作者线程,一个用于监视串口缓冲区数据,一个用于对从串口读取的数据进行处理,工作者线程通过自定义消息和主线程进行通信.对系统进行了不同类型光源和纺织品检测,实验结果表明,基于多线程串口通信技术的织品光学性能检测系统数据采集准确、可靠.A multithreading serial-port communication method for textile optical properties test system is presented in this paper, which is designed to sample textile optical data and based on VC++ multithreading technique. Two worker threads are set up on the base of a main thread. One is designed to watch the data in the serial-port buffer. The other is designed to deal with the data read from the serial port. They communicate with the main thread by means of self-definition message. Various light sources and textiles were tested in order to verify this method. The experimental results show that this method is exact and reliable.

关 键 词:多线程 串口通信 VC++ 纺织品 检测 

分 类 号:TP392[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象