- 1、本文档共23页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
人机接口设备——开关类部件的仿真实现
摘 要
本文先简要介绍了仿真的基本理论,现状及发展前景,然后说明本毕业设计的研究目的和意义。开关类部件的仿真是为了在虚拟的接口实验平台上,以计算机软件模拟实际环境进行科学实验。本设计中主要研究的是机械类开关,包括单刀单掷开关和单刀双掷开关及键盘开关。详细分析了这些开关的机械物理特性,特别是开关在开、合过程中的瞬态响应特点。利用MFC类库和Visual C++提供的高度可视的应用程序开发工具对开关类部件进行模拟仿真设计:首先由虚拟实验平台统一设计的器件基类,派生出对应的开关器件类,通过重载基类中的一些虚函数,仿真实现开关的相应功能特性,包括对输入输出信号的响应及鼠标响应模拟开关动作,不同的执行动作,会使开关有不同的状态,同时也会改变管脚信息。再将器件类封装成DLL模块,以便在实验时,通过特定的接口调用这些器件功能。根据开关的种类将每个种类写成独立的DLL模块。对于单刀单掷开关和单刀双掷开关,经测试,基本达到设计目标,但对于键盘类开关,由于某些技术上和知识上的不足,在本设计中没有成功设计出相应的DLL模块,有待以后改进。
最后对设计研究工作进行了总结,指出了研究上的不足及改进方向,说明了在本次设计中的收获。
关键词: 开关的种类;开关的特点;时间响应;仿真实现
Man-machine interface equipment--Switch parts simulation realization
Abstract
The thesis introduced basic theories, current situation and development prospect of simulation briefly first,then explained research purpose and meaning of this graduation project. Switch emulation is to carry on scientific experiment with simulating the real environment by computer software, at the virtual interface experiment platform. In the thesis, the main research topic is mechanical switch, including SPST (Single Pole Single Throw), SPDT (Single Pole Double Throw) and keyboard switch. It analyzed the mechanical physical characteristics of the switches, especially the transient state in the course of holding, shutting of the switch. Exploiting the developing tools for high degree visualized application provided by MFC and Visual C, it simulated the design of switch. At first, it has to design the basic device class by virtual experiment platform, and derive the relative switch device class. With deriving some virtual functions of basic class, the relative function characteristics of switch can be simulated, including the response of input and output signal, mouse response to emulate different switch activities which produce different switch status, and change the pin information simultaneously. Second, the device class is packed into DLL module for using the functions of the device by particular interface in experiments. According to
文档评论(0)