首页 | 本学科首页   官方微博 | 高级检索  
     

PC/104下同时实现A/D采样和串行通信
引用本文:吴雁鸣,程明霄,张华. PC/104下同时实现A/D采样和串行通信[J]. 化工自动化及仪表, 2005, 32(5): 40-42
作者姓名:吴雁鸣  程明霄  张华
作者单位:南京工业大学,自动化学院,江苏,南京,210009;南京工业大学,自动化学院,江苏,南京,210009;南京工业大学,自动化学院,江苏,南京,210009
摘    要:介绍一种在PC/104下同时进行A/D采样和串行通信的方法。阐述如何利用VC 6.0、VtoolsD编写虚拟设备驱动程序捕获PC104中断进行采样,并编写W IN32应用程序与VxD通信;利用免费串口工具CSerial-Port类编写串口通信代码,并利用线程同步成功实现了使PC104同时进行A/D采样和串行通信,并给出关键部分程序。

关 键 词:PC/104  A/D采样  虚拟设备驱动程序  串行通信  线程同步  在线分析仪器
文章编号:1000-3932(2005)(05)-0040-03
收稿时间:2005-07-19
修稿时间:2005-07-19

Realizing A/D Sampling and Serial Communication Synchronously on PC/104
WU Yan-ming,CHENG Ming-xiao,ZHANG Hua. Realizing A/D Sampling and Serial Communication Synchronously on PC/104[J]. Control and Instruments In Chemical Industry, 2005, 32(5): 40-42
Authors:WU Yan-ming  CHENG Ming-xiao  ZHANG Hua
Abstract:A method of synchronous realization of A/D sample and serial communication on PC/104 is introduced.This paper discusses how to compile VxD to capture the PC104 interrupt request to sample,and compile the WIN32 program to communicate with VxD by VC 6.0 and VtoolsD;How to compile the serial communication code by the CSerialPort class,a free tool,succeed in the synchronous realization A/D sample and serial communication by the synchronization of thread.The key program codes are given.
Keywords:PC/104  A/D sample  virtual device driver  serial communication  thread synchronization  online analytical instrument  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号