期刊文献+

控制算法动态连接库的实现与优化 被引量:2

Realization and Optimization of Control Algorithm DLL
下载PDF
导出
摘要 为在大型工业过程控制图形组态软件包(WindowsNT平台上)中有效加入各种控制算法模块,并改善算法与软件包性能,可将算法模块编成动态连接库(DLL)的形式.采用有效方式设置算法模块参数、实现算法模块DLL与主程序的接口统一化,在运行时动态载入DLL,利用WIN32的多线程技术优化软件包.可采用线程局部存储器为各线程创建私有数据存储区,保证各算法不互相干扰.对共亨资源利用互斥对象实现线程间的同步,防止死锁等错误.采用以上技术可使整个模块代码简洁、所占资源少,易于扩充、升级,同时,算法模块的效率与安全性提高,实时性增强. In order to add control algorithm modules to the Large Industry Process Control Graphical Configuration Software (on Windows NT platform) efficiently and ameliorate performance of the control algorithm and the software, the algorithm modules should be programmed as Dynamic Link Library (DLL) and be optimized with the multi thread technique of WIN32. An efficient way was used to set the parameters of the algorithm modules. The interface of DLL and main program were integrated and the DLL was loaded during runtime. The multi thread technology was applied to optimize the DLL. Thread Local Storage (TLS) was used to create private data segment memory for each thread and prevent the mutual influence between the threads. Mutes objects were used to realize synchronism of the threads and prevent errors such as the dead lock. By using the techniques above, the code would be more concise and cost less system resource and be easier to expand. The effciency, real time property and security of the algorithm module are ameliorated.
出处 《上海交通大学学报》 EI CAS CSCD 北大核心 1999年第4期428-430,共3页 Journal of Shanghai Jiaotong University
基金 国家"九五"计划重点科技攻关项目
关键词 控制算法 动态连接库 多线程 工业控制 软件包 control algorithm dynamic link library multi thread thread local storage synchronism mutex
  • 相关文献

同被引文献11

引证文献2

二级引证文献5

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部