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

VC++DLL在工控软件设计中的应用
引用本文:汤红忠,黄辉先,尹令.VC++DLL在工控软件设计中的应用[J].兵工自动化,2003,22(6):52-53.
作者姓名:汤红忠  黄辉先  尹令
作者单位:湘潭大学,信息工程学院,湖南,湘潭,411105
摘    要:用VC 6.0可开发基于DLL的数据采集卡驱动程序.以工控板卡AC1056a为例,将DLL驱动程序用于工控软件设计,可通过相应函数完成数据采集.该设计采用DLL显式链接,调用DLL函数创建TabWnd工程,在TabWnd.cpp中添加板卡驱动程序的头文件并设置DLL句柄.同时装载DLL与驱动,设置多媒体定时器进行定时采样.并添加一个独立于主线程的数据采集线程,定义GetData()的全局函数,实现程序模块化设计.

关 键 词:VC++DLL  工控软件  软件设计  数据采集  ACl056a  驱动程序
文章编号:1006-1576(2003)06-0052-02
修稿时间:2003年5月3日

Application of VC++ DLL in Design of Industrial Control Software
TANG Hong-zhong,HUANG Hui-xian,YIN Lin.Application of VC++ DLL in Design of Industrial Control Software[J].Ordnance Industry Automation,2003,22(6):52-53.
Authors:TANG Hong-zhong  HUANG Hui-xian  YIN Lin
Abstract:The driver of data acquisition card based on DLL was developed with VC++ 6.0. Taking industrial control card AC1056a as an example, DLL driver can be applied into industrial control software design, corresponding function is called to finish data acquisition. DLL explicitly linking was adopted in the design and TabWnd project was established through calling DLL functions. In the TabWnd.cpp, the header file of card driver was added and DLL handles were set up. Simultaneously DLL and driver was loaded, multi-media timer was set up to sample regularly by timer. The data acquisition thread of independence on main-thread was augmented, i.e. GetData() global function was defined. Module design of program was realized.
Keywords:DLL  Data acquisition  AC1056a  Driver programming
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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