Win32环境下一种通用控制软件的实现方法  被引量:2

Implementation of & Universal Control Software in Win32 Circumstance

在线阅读下载全文

作  者:蔡文斋[1] 

机构地区:[1]中国电子科技集团公司第39研究所,陕西西安710065

出  处:《现代电子技术》2005年第8期51-52,62,共3页Modern Electronics Technique

摘  要:介绍了一种通用的控制系统软件的实现方法,该软件架构将复杂的控制系统所有硬件传感器经数学抽象、归类后,使用流对象统一处理,控制软件仅对流操作。所有硬件传感器后台读写用独立线程完成,线程由各自事件同步,同步事件由中断产生,中断由脉冲设备或者定时器产生,软件缓冲区与硬件缓冲区使用临界区对象同步,硬件传感器读写完成后发送用户消息给前台窗口,这样,控制软件中访问硬件的代码段同其他代码段完全独立,特别地,通讯协议等复杂的问题在此软件架构下仅以一条控制函数形式出现。无论控制对象由多少种传感器搭建,无论设备多少,监控软件的架构是一致的,复杂的控制问题就转化为对某类流设备的读写问题。In this paper,an universal control system software method is introduced,the method abstract hardware device with steam object, control software only operate the steam object.Read and write all hardware sensor data using each threads singly,each the event synchronize the threads, synchronization event is created by the interrupt, the interrupt is created by hardware impulse device or timer, critical section object synchronize the software and hardware buffer. After read and write the data of hardware sensor,the thread send message to main windows,in the way control the code segment of operate hardware and other code segment are independence.specially, the complex problem of hardware device communication prototal appears in the only function form, no matter what control object is made of what sensor type, no matter what there are how many hardware device, monitor and control software framework is consistent and debug is convenience,complicated control problem translate to some software steam object read and write.

关 键 词:WIN32编程 传感器 事件 临界区 用户消息 流对象 

分 类 号:TP31[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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