上位机软件设计

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

高速突发误码测试仪上位机软件设计院系:信息科学与技术系专业班:光信0803班姓名:王迪学号:20081182106指导教师:周向阳2012年5月高速突发误码测试仪上位机软件设计TheHostComputerSoftwareDesignofHigh-speedBurstBERTesterI摘要设计高速突发误码测试仪上位机的主要目的是配合高速误码测试仪下位机工作,提供了用户和设备的接口。本文的主要内容介绍了一种基于C++语言开发的控制软件。简要叙述软件的各个功能模块的主要功能,重点介绍程序设计流程设计思想,多线程技术在处理串口通信时的应用和Access数据库的使用以及程序设计、界面设计、控件使用的方法。对下位机高速突发误码测试仪的工作原理和设计思想进行了简要的阐述。在介绍软件编写流程以及编程技巧的同时,本文着重讲述了编程思路以及编写流程等内容。本文讲述了使用MicrosoftVisualStudio,MFC基于对话框.NETFrameWork框架设计的程序调试的基本方法,以及数据可靠性传输,错误处理机制,调试过程,程序运行结果分析等内容。在运行调试过程中,遇到的一些问题通过查阅资料等方法得到了一套很好的解决方案。程序运行的结果均达到了预期的结果,上位机和下位机之间通讯可靠性满足要求。但是,也有不足之处。例如:界面美化方面可以进一步加强,数据库操作方面应该更加灵活。关键词:上位机软件串口通信Access数据库C++控件界面设计IIAbstractAbstractAbstractAbstractThemainpurposeistodesignhigh-speedburstBERtesterhostcomputerwithhigh-speedBERtester-bitmachine,auseranddeviceinterface.ThemaincontentintroduceakindofC++languagedevelopmentofcontrolsoftware.Brieflydescribesthesoftwareofthevariousfunctionalmodulesmainfunction,focusintroducedtheprogramdesignprocessdesignthinking,multi-threadingtechnologyinthehandlingserialcommunicationapplicationsandtheAccessdatabasetouse,aswellasprogramdesign,interfacedesign,thecontrolmethodsused.Abriefexpositionofthelowermachinespeedbursterrortesterworksanddesignideas.Intheintroductionofsoftwaredevelopment,processes,andprogrammingskillsatthesametime,thearticlefocusesonthecontentoftheprogrammingideasandwritingprocess.ThisarticledescribestheMicrosoftVisualStudioMFCdialogbox.NETFrameWorkframeworkprogramsdesigneddebuggingmethods.Aswellasthecontentofthereliabilityofdatatransmission,errorhandling,debuggingprocess,theresultsofanalysisoftheprogramisrunning.TheResultoftheprogram,someoftheproblemsencounteredbythedataaccessmethodssuchasagoodsolution.Theresultsoftheprogramisrunningtoachievethedesiredresults,communicationbetweenthePCandthenextbitmachinereliabilitytomeettherequirements.However,therearedeficiencies.Forexample:interfacelandscapingtofurtherstrengthenthedatabaseoperationstobemoreflexible.KeyKeyKeyKeywordswordswordswords:PCsoftwareserialcommunicationC++controlinterfacedesignIII目录摘要...........................................................................................................................................IAbstractAbstractAbstractAbstract...................................................................................................................................II绪论............................................................................................................................................11设计思路及系统简介.........................................................................................................21.1下位高速突发误码测试仪的设计思路及系统简介...................................................21.2高速突发误码测试仪的上位机软件设计思路及系统简介......................................32软件系统总体设计.............................................................................................................52.1软件设计流程.................................................................................................................52.2软件层次划分以及主要功能模块................................................................................72.3模块功能的实现.............................................................................................................73可靠性数据传输.................................................................................................................93.1通讯协议实现可靠性传输设计....................................................................................93.2组建和解析通讯帧.......................................................................................................103.3出错处理机制...............................................................................................................104人机交互界面设计...........................................................................................................124.1主体界面设计...............................................................................................................124.2后台呼出界面设计.......................................................................................................145主要控件介绍...................................................................................................................165.1MSComm控件使用..........................................................................................................165.2ADO控件使用................................................................................................................175.3DateGrid控件使用......................................................................................................185.4常用控件使用...............................................................................................................186数据库操作........................................................................................................................226.1创建数据库连接...........................................................................................................226.2数据库读写操作...........................................................................................................237软件功能实现.............

1 / 40
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功