基于PC串口的开关量检测控制方法研究
首发时间:2010-07-21
摘要:为了改进目前开关量检测和控制系统中上位机和下位机系统结构的现状,提出直接利用计算机串行接口检测和控制开关信号的方法。该方法利用计算机作为控制器,采用简单的分立电子元件实现串行接口信号转换功能,用MSComm控件编程实现开关量的检测和控制。本文设计了具有4路开关量输入通道和3路开关量输出通道的串行接口模块,采用Visual Basic 6.0开发了计算机测控软件,组成结构简单的开关量测控系统。实验结果表明该方法在计算机不可或缺的系统应用条件下切实可行,系统结构简单、抗干扰能力强、扩展性强、实时性好。
For information in English, please click here
Method of switch signal detection and control based on PC serial interface
Abstract:In order to improve the host-slave architecture of Switch signal detection and control system in the present situation, a new method for detecting and controlling switch signal directly through computer serial interface is proposed. In this method, the computer functions as the main controller, realizing the serial interface signal conversion with the simple discrete electronic component, and detecting and controlling switch signal by programming with MSComm control. The switch signal detection and control system with simple structure is composed of one serial interface module with 4 input channels and 3 output channels and the computer software for detecting and controlling developed with Visual Basic 6.0. The experimental results indicate that this method is practical and feasible in a situation where a computer is indispensable in the application system, and the system features simple structure, strong anti-interference capability, good expansibility, and excellent real-time performance.
Keywords: signal detection switch signal detection and control system PC serial port VB
论文图表:
引用
No.4379229536620127****
同行评议
共计0人参与
勘误表
基于PC串口的开关量检测控制方法研究
评论
全部评论0/1000