[1]李思源 谭业双.基于LabWindows/CVI多线程编程的串口测试实现[J].计算机技术与发展,2012,(07):121-123.
 LI Si-yuan,TAN Ye-shuang.Design of Testing Programme for Serial Port Based on Multithreading Method in LabWindows/CVI[J].,2012,(07):121-123.
点击复制

基于LabWindows/CVI多线程编程的串口测试实现()
分享到:

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
期数:
2012年07期
页码:
121-123
栏目:
智能、算法、系统工程
出版日期:
1900-01-01

文章信息/Info

Title:
Design of Testing Programme for Serial Port Based on Multithreading Method in LabWindows/CVI
文章编号:
1673-629X(2012)07-0121-03
作者:
李思源 谭业双
军械工程学院光学与电子工程系
Author(s):
LI Si-yuanTAN Ye-shuang
Department of Optical and Electronic Engineering, Ordnance Engineering College
关键词:
串口LabWindows/CVI多线程
Keywords:
serial port LabWindows/CVI multithreading
分类号:
TP216
文献标志码:
A
摘要:
为了解决在利用LabWindows/CVI编写程序控制仪器对串口进行测试过程中,采集数据时在程序收到串口信号前系统无响应的问题,对串口基本原理和LabWindows/CVI中多线程编程思想进行了分析,对用于测试的多线程编程方法进行了研究,编写了基于多线程的串口测试程序。程序中主线程用于程序界面的调用及程序的配置,次线程函数用于驱动串口读取数据,等待串口信号。经验证,基于多线程的编程方法在实际测试中有效地解决了超时问题,提高了测试程序的可操作性和易用性,达到了良好的测试效果
Abstract:
In order to ravel out the irresponsive condition as waiting for data to be sent from the serial port when testing it, a multithreading-based testing programme for serial port is designed based on the principium of serial port and multithreading method in LabWindows/CVl, in which main thread starts and initializes the user interface while sub thread is used to wait and read the data sent from a seri- al port. This method solved the very problem in online testing and made the programme more maneuverable and easier to use,reaching the good effect

相似文献/References:

[1]张梦麟 李念强 王正生.基于LabWindows/CVI网络虚拟仪器实验平台设计[J].计算机技术与发展,2008,(02):212.
 ZHANG Meng-lin,LI Nian-qiang,WANG Zheng-sheng.Design of Framework for Virtual Instrument Lab Based on LabWindows/CVI[J].,2008,(07):212.
[2]江峰 刘高嵩.串口通讯中系统资源分配问题的研究[J].计算机技术与发展,2006,(11):64.
 JIANG Feng,LIU Gao-song.Research on Operating System's Resource in Serial - Port' s Communication[J].,2006,(07):64.
[3]王宁 王铮.Ice插件技术研究[J].计算机技术与发展,2012,(05):40.
 WANG Ning,WANG Zheng.Research of Plug-In Technology Based on Ice[J].,2012,(07):40.
[4]李姝萱,卜 刚,韩宇昕.基于 UVM 的软硬件协同验证平台设计[J].计算机技术与发展,2022,32(08):76.[doi:10. 3969 / j. issn. 1673-629X. 2022. 08. 013]
 LI Shu-xuan,BU Gang,HAN Yu-xin.Design of UVM-based Software and Hardware Co-simulation Verification Platform[J].,2022,32(07):76.[doi:10. 3969 / j. issn. 1673-629X. 2022. 08. 013]

备注/Memo

备注/Memo:
李思源(1988-),男,河北石家庄人,硕士研究生,主要从事通信装备故障诊断和性能测试研究;谭业双,副教授,硕士生导师,主要从事通信与信息系统理论和应用研究
更新日期/Last Update: 1900-01-01