VC++ DLL在工控软件设计中的应用  被引量:4

Application of VC++ DLL in Design of Industrial Control Software

在线阅读下载全文

作  者:汤红忠[1] 黄辉先[1] 尹令[1] 

机构地区:[1]湘潭大学信息工程学院,湖南湘潭411105

出  处:《兵工自动化》2003年第6期52-53,共2页Ordnance Industry Automation

摘  要:用VC++6.0可开发基于DLL的数据采集卡驱动程序。以工控板卡AC1056a为例,将DLL驱动程序用于工控软件设计,可通过相应函数完成数据采集。该设计采用DLL显式链接,调用DLL函数创建TabWnd工程,在TabWnd.cpp中添加板卡驱动程序的头文件并设置DLL句柄。同时装载DLL与驱动,设置多媒体定时器进行定时采样。并添加一个独立于主线程的数据采集线程,定义GetData()的全局函数,实现程序模块化设计。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.

关 键 词:VC++DLL 工控软件 软件设计 数据采集 ACl056a 驱动程序 

分 类 号:TP274.2[自动化与计算机技术—检测技术与自动化装置]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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