摘要
研华工控计算机及相关板卡、模块大量应用于诸多领域,随着高级语言编程的普遍使用,直接使用研华相关板卡在Windows 2000平台上开发工程项目已经愈来愈普遍。研华提供的函数库也愈来愈多地使用在控制软件中。研华公司其实已提供了一个设备管理器,该管理器也就是一个调试器。但实际使用时发现仍有不尽人意之处,比如多通道A/D采集,他给不出那么多通道,在中断使用时,他的例子不直观。在快速I/O通讯时,他的界面上无法记忆每一个通道的数据等。本文使用研华提供的DLL库函数开发了这个扩展调试器,并将他的设备初始化函数做了精简,重新包装了他的函数库,按类型重写了I/O代码。这样,无论是研华公司何种板卡,该套函数都一样,不但开发出了扩展调试器,而且该套函数可以应用于相应工程中。
The Advantech Products(computer,card, ADAM model) are widely used in much field,the programing language tools are widespread used in advanced language,in the Windows 2000 platform,more and more Advantech products are used in many projects. The Adventechts equipments management have been provided,the management is only a debugger, but we find the management have faultiness such as multi--channel A/D simples,it canntt provide all channels data. the inturrept example is unclarity,it canntt save digital I/O data at quick digital I/O data communication. We write another debugger with Advantech DLL. Condense the device initialization function, pack the Advantech DLL, rewire I/O code by types. Now no matter what cards of the Advantech,every function is same. The author not only programe a general debugger but also the rewrite funtion may apply related project.
出处
《现代电子技术》
2007年第11期100-102,共3页
Modern Electronics Technique
关键词
通用调试器
数模转换
模数转换
数字输入输出
研华卡
general debugger
digital/analog
analog/digital
digital input/output
Advantech card