MSComm多通道数据分析仪实时模拟数据录取软件设计摘要在分布式火控系统精度检测与分析时,往往需要采集第一手原始真实数据,所以数据录取设备必不可少。本文在此背景下,首先介绍了分布式火控系统研究的意义国内外的研究现状,随着科技和军事战争的发展,火控系统的作用越来越重要,我们必须重视这个问题。对于数据通信,本文介绍了串口通信的基本知识,包括串口通信方式、通信协议等,如串口通信的特点、通信方式。针对火控系统数据录取软件设备,本课题利用MSComm控件编程实现模拟数据分析仪的功能,进行实时数据录取,并详细介绍了MSComm控件的加载、事件和属性,为软件的编写做下铺垫。在VC++6.0开发环境下,利用MFC制作软件界面,控件属性与事件编写基于串口的数据录取代码,用虚拟串口软件在一台计算机上虚拟出两个串口,用一个串口调试助手模拟16进制数据发送。最终软件成功实现的功能有:串口创建,串口打开,数据通信录取,十进制显示数据,保存数据和打开显示已保存的数据等功能,并在录取的数据后打上系统时标,精确到毫秒。31908毕业论文关键词火控系统串口通信数据接收MSComm控件毕业设计说明书外文摘要TitleThereal-timeanalogdatarecordingofmultichannelanalyzerdataSoftwaredesign源自-六~(维^论`文^网(加7位QQ3249`114AbstractWhenwedetectandanalyzetheaccuracyofdistributedfirecontrolsystem,weoftenneedtocollectfirst-handoriginaltruedata,sodataacceptanceequipmentisanecessity.Againstthisbackground,thispaperfirstlyexpoundsthesignificanceofdistributedfirecontrolsystem,thecurrentresearchstatusathomeandabroad.Withthedevelopmentofscienceandtechnologyandmilitarywar,theroleoffirecontrolsystembecomesmoreandmoresignificant,wemustattachgreatimportancetothisproblem.Fordatacommunication,thispaperintroducesthebasicknowledgeofserialcommunication,includingserialinterfacecommunicationmode,communicationprotocol,etc.suchasthecharacteristicsofserialportcommunication,communicationmode.Pointtothefirecontrolsystemdatasoftwaredevice,thistopicusesMSCommcontrolprogrammingtorealizethefunctionofanalogdataanalyzer,recordsthereal-timedata,andintroducestheMSCommcontrolload,eventsandpropertiesindetail,thisgivesawarm-upforthewritingofsoftware.Invc++6.0developmentenvironment,softwareinterfaceismadebyMFC,serialdatarecordcodewhichbasedonserialportarewrittenbycontrolpropertiesandevents,itusesvirtualserialportsoftwareonacomputerwithtomaketwovirtualserialports,itusesaserialdebuggingassistantsimulationtosendhexadecimaldata.Thefinalfunctionsofthesoftwareachievesare:serialportcreation,serialportopen,datacommunicationrecord,decimaldisplaydata,savingdataandopeningdisplaythesaveddata,andotherfunctions,andmaketimemarkingsaftertheadmissionofdata,thetimeaccuratestomilliseconds.KeywordsFireControlSystemASerialPortCommunicationDataReceptionMSCommControl;目次1绪论11.1课题研究背景级意义11.2国内外研究现状11.3论文的研究内容31.4论文的章节安排32串口通信基础42.1串口通信方式4源自-六~(维^论`文^网(加7位QQ3249`1142.2串口通信协议62.3串口通信工具72.4串口通信编程语言83模拟数据录取软件总设计123.1软件总体构架123.2软件功能模块124模拟数据录取软件详细设计184.1设计思路184.2功能模块详细设计195模拟数据软件调试分析275.1软件调试概述275.2功能模板调试27:5.3软件整体调试295.4软件调试分析326总结33致谢35参考文献36附录A主界面头函数与程序代码371绪论1.1课题研究的背景及意义武器火控系统是控制武器自动或半自动地实施瞄准与发射的装备的总称。现代火炮、坦克炮、战术火箭和导弹机载武器、舰载武器等大多都配有火控系统。非制导武器配备火控系统,可提高瞄准与发射的快速性与准确性,增强对恶劣战场环境的适应性,以充分地发挥武器的毁伤能力。制导武器配备...