基于labview虚拟仪器平台的扫雷软件开发毕业论文(附录图用a3纸)(编辑修改稿)内容摘要:
游戏。 介绍基于该平台的设计原理和开发过程,可以在该平台上调试常用工具,分析典型项目组织结构。 论文首先介绍了 LabVIEW 的一些基本信息, 包括 LabVIEW 虚拟仪器 平台、开发环境等等; 然后 介绍了制作游戏的整体思路及整个游戏设计的流程规划 ; 再 详细 介绍了 游戏各模块的设计,如 雷区的布置及地雷随机产生的实现方法; 其次 重点介绍了 扫雷游戏界面的实现、扫雷游戏核心 —— 布雷算法设计、 在游戏过程中鼠标响应事件 等等。 本次设计只是完成了扫雷游戏的基本功能,在细节方面仍有待以后完善。 关键 词: 图形化 ; 控制软件 ; 扫雷游戏 ; LabVIEW; 虚拟仪器 Abstract LabVIEW (Laboratory Virtual instrument Engineering Workbench) is a graphical programming language development environment, it has been widely accepted by industry, academia and research laboratories, as a standard data acquisition and instrument control software. LabVIEW integrates with all functions of GPIB, VXI, RS232 and meet the RS485 protocol of the hardware and data acquisition card munication. It also has a builtin library functions in order to use TCP\/IP, ActiveX software standards. This is a powerful and flexible software. It can be used to facilitate the establishment of virtual instruments of its own, its graphical interface makes programming and use of the process are lively and interesting. Minesweeper is Windows operating system es with a small game, in the past few years, the Windows operating system through several times of regeneration, bees more and more large, plex, the function is also more and more powerful, but the game still maintained the original appearance, so the game by more and more people love. This study is based on LabVIEW virtual instrument platform as the development environment, through the design of its function is similar to the windows operating system of mine own game by LabVIE on PC. This paper presents design principle and development process based on this platform, you can debug tools used in the platform, analysis of typical project anizational paper firstly introduces LabVIEW some basic information, including the LabVIEW virtual instrument platform, development environment and so on。 and then describes the overall train of thought to make the game and the game design process planning。 and then introduces the design of each module of the game, such as minefield layout and randomly generated mine method。 secondly, introduces the implementation of the Minesweeper game interface Minesweeper game core mining algorithm design, in the course of the game the mouse response to the incident. This design just pleted the basic function of mine game, still need to be perfect in details later. Key words: graphical。 control software。 minesweeper game。 labview。 virtual instrument 目 录 1 绪论 ......................................................... 1 2 LabVIEW 虚拟仪器平台简介 ..................................... 2 电子测量仪器的发展 ..................................... 2 虚拟仪器概述及其特点 ................................... 2 虚拟仪器的硬件系统 ..................................... 3 虚拟仪器的软件系统 ..................................... 3 3 开发环境 ..................................................... 5 开发工具 —— LabVIEW.................................... 5 LabVIEW 简介 ..................................... 5 LabVIEW 的起源与发展历程 ......................... 7 开发外围环境 ........................................... 9 操作系统 ......................................... 9 运行环境 ......................................... 9 开发意义 ............................................... 9 设计 任务及内容 ......................................... 9 设计任务 ......................................... 9 设计内容 ......................................... 9 4 可行性分析和需求分析 ........................................ 10 可行性分析 ............................................ 10 需求分析 .............................................. 10 理解需求 ........................................ 11 功能需求 ........................................ 11 5 扫雷游戏软件总体设计概述 .................................... 12 主要模块概述 .......................................... 12 设计步骤流程 .......................................... 14 6 扫雷游戏软件详细设计 ........................................ 15 扫雷游戏界面的实现 .................................... 15 扫雷游戏主界面的设计 ............................ 15 游戏难度选择界面设计 ............................ 17 扫雷游戏核心 —— 布雷算法设计 .......................... 18 扫雷游戏响应事件的设计 ................................ 19 时间和雷数提示功能设计 .......................... 19 鼠标控制扫雷过程消息设计 ........................ 20 扫雷游戏整体界面和程序优化 ............................ 21 7 扫雷游戏软件功能测试和运行 .................................. 22 打包成可执行软件 ...................................... 22 逐步测试各项功能 ...................................... 25 测试初级、中级、高级三个选择按钮。 .............. 25 游戏完成 ........................................ 30 游戏失败 ........................................ 30 结束语 ......................................................... 31 参考文献 ....................................................... 33 致 谢 ......................................................... 35 附录一 后面板程序总图之一 ..................................... 36 附录二 后面板程序总图之二 ..................................... 37 附录三 后面板程序总图之三 ..................................... 38 1 1 绪论 在计算机逐步渗入社会生活各个层面的今天,计算机已经成为人们日常生的一部分,越来越多的人使用计算机办公、娱乐等等。 扫雷游戏是 Windows操作系统自带的一款小游戏,在过去的几年里, Windows操作系统历经数次换代更新,变得越来越庞大、复杂,功能也越来越强大,但是这款小游戏依然保持原来的容貌,可见这款小游戏受到越来越多人的喜爱。 扫雷最原始的版本可以追溯到 1973年一款名为 Cube(方块)的游戏。 1985年,“方块”被改写成了游戏 Relentless Logic[2](简称为“ Rlogic”)。 在“ Rlogic”里,玩家的任务是作为 美国海军陆战队 队员,为指挥中心探出一条没有地雷的安全路线,如果路全被地雷堵死就算输。 两年后, 汤姆安德森 ( Tom Anderson)在 “Rlogic”的基础上又编写出了游戏 “XMines”[3](地雷),由此奠定了现代扫雷游戏的雏 形。 在此基础上, 1989年开始受雇于 微软 公司的两位工程师罗伯特杜尔 ( Robert Donner) 和卡特约翰逊 ( Curt Johnson) 开发出了扫雷游戏,这才有了一款金典的游戏。 目前关于扫雷软件的开发和设计大部分用到的是 JAVA 和 C/C++语言,相反用到其他开发语言的就很少了,因此本人基于兴趣,经反复研究,找到了一款图形界面开发工具 —— LabVIEW,所以 本次的毕业设计我将利用 LabVIEW 作为开发 工具,开发一款类似于 Windows 操作系统自带的“扫雷游戏”。 37。基于labview虚拟仪器平台的扫雷软件开发毕业论文(附录图用a3纸)(编辑修改稿)
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。
用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。