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

Realization and Optimization of Control Algorithm DLL

在线阅读下载全文

作  者:周立[1] 张文渊[1] 郑震宇[1] 苏建锋 

机构地区:[1]上海交通大学自动化系

出  处:《上海交通大学学报》1999年第4期428-430,共3页Journal of Shanghai Jiaotong University

基  金:国家"九五"计划重点科技攻关项目

摘  要:为在大型工业过程控制图形组态软件包(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.

关 键 词:控制算法 动态连接库 多线程 工业控制 软件包 

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

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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