检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:蔡文斋[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[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.62