1、 本 科 毕 业本 科 毕 业 设 计设 计 (20201 11 1 届)届) 题题 目目 电梯运行状态的 VB 仿真 学学 院院 电子信息学院 专专 业业 电子信息科学与技术 班班 级级 学学 号号 学生姓名学生姓名 指导教师指导教师 完成日期完成日期 2011 年 3 月 诚诚 信信 承承 诺诺 我谨在此承诺:本人所写的毕业论文电梯运行状态的 VB 仿真 均系本人独立完成,没有抄袭行为,凡涉及其他作者的观点和材料, 均作了注释,若有不实,后果由本人承担。 承诺人(签名) :承诺人(签名) : 年年 月月 日日 摘 要 本毕业设计主要设计电梯运行状态的仿真 VB 程序, 该程序能直观简便的显
2、示 电梯在日常工作时状态的切换转变,体现人与电梯之间的互动过程,帮助人们理 解掌握电梯的工作方式。 本设计亦展现了 VB 语言的优点, 作为一种可视化编程的 高级语言,其简单、高效而又功能强大的特点让每一个程序员受益匪浅。 程序主界面分为内部轿厢界面、外部层站界面和主体大楼界面三部分。内部 轿厢界面模拟电梯轿厢内部的操作面板,包括位置指层器、方向指示灯、选层按 钮和开关门按钮。外部层站界面模拟电梯轿厢外部各层站的操作面板,包括位置 指层器、方向指示灯、上楼请求按钮和下楼请求按钮。主体大楼界面模拟一栋高 层大楼及其中的工作电梯,用于显示电梯的上下层、开关门等动作。 程序实现了电梯的目的地控制,即
3、电梯能实时的接收多个不同请求,并智能 化的选择下一个目的地,使工作效率达到最大。此外程序还实现了电梯的一些特 殊功能:内部轿厢界面上的紧急暂停按钮帮助电梯用户以最快的速度逃离电梯; 电梯用户通过双击选层按钮,能够自行撤销该次选层请求;电梯门也实现了自动 延时关门功能,即每次电梯停站开门后,将在五秒内自动关门;这些人性化的设 计简便了用户的操作。 关键词:电梯;VB;仿真;控制 ABSTRACT The main aim of this thesis is to design Visual Basic simulation program about elevator running that
4、can be easy and intuitive display of the elevator running in the daily working, show the interaction between people and elevator, and help us understand the way elevator work. This design also demonstrates the advantages of Visual Basic language, as a high-level visual programming language, its simp
5、le, efficient and powerful features benefit every programmer. The main interface is divided into three parts: the internal car interface, the external landing interface and the main building interface. The internal car interface show the operating panel inside the car, including position indicator,
6、direction indicator, floor selection button, door open button and door close button. The external landing interface show the landing operating panel at each floor landing, including position indicator, direction indicator, upstairs request button and downstairs request button. The main building interface displays an elevator working in a high-rise building, which is used to display the elevators up and down moving, the door open and close action a