文档详情

激光测距机测试控制上位机软件设计.doc

发布:2025-03-29约1.6万字共28页下载文档
文本预览下载声明

PAGEVII

郑州航空工业管理学院

毕业设计报告

PAGEIII

摘要

激光测量技术已经涉及国民经济的各个行业,实时激光测距仪已在许多领域中得到广泛使用。通过PC远程控制激光测距仪时,PC称为上位机,而激光测距仪称为下位机。

激光测距仪的顶级计算机软件可在PC上运行,它的主要功能是在PC上远程控制频谱分析仪,在仪器上同时显示测试数据和测试波形,并将分析数据保存在PC上,为用户提供进一步的分析参考依据。在电磁辐射污染严重的环境中,激光测距仪可通过无线方式进行远程控制,而卓越的计算机软件提供了这种可能性。

本文重点介绍使用模型-视图-控制器设计模型的面向对象的观点,并提供三层软件体系结构的设计和实现,该体系结构使用SCPI命令通过USB远程控制激光测距仪主机软件总线。该软件采用通用的C#开发语言,并从面向对象的角度根据MVC模式构建软件的三层结构,以拆分软件层,组织软件代码,并方便升级和维护其扩展。软件功能。控制器封装业务功能,业务功能是软件的业务功能层,模型对应于软件的业务数据层,视图是软件的显示层。在软件设计中,定义了一种简单的通信格式,采用了多线程技术,并确保了通信同步。该软件已提供给用户使用,并且运行良好。

关键词

激光测量技术;上位机;远程控制

Abstract

Lasermeasurementtechnologyhasbeeninvolvedinvariousindustriesofnationaleconomy,real-timelaserrangefinderhasbeenwidelyusedinmanyfields.WhenthelaserrangefinderiscontrolledremotelybyPC,PCiscalledtheuppercomputer,whilethelaserrangefinderiscalledthelowercomputer.

Thetop-levelcomputersoftwareoflaserrangefindercanrunonPC.itsmainfunctionistocontrolthespectrumanalyzerremotelyonPC,displaythetestdataandtestwaveformontheinstrumentatthesametime,andsavetheanalysisdataonPC,soastoprovideuserswithfurtherreferenceforanalysis.Intheenvironmentofseriouselectromagneticradiationpollution,thelaserrangefindercanbecontrolledbywirelessway,andtheexcellentcomputersoftwareprovidesthispossibility.

Thispaperfocusesontheobject-orientedviewofusingthemodelviewcontrollerdesignmodel,andprovidesthedesignandimplementationofathree-tiersoftwarearchitecture,whichusestheSCPIcommandtoremotelycontrolthehostsoftwarebusofthelaserrangefinderthroughUSB.ThesoftwareusesthegeneralCdevelopmentlanguage,andconstructsthethree-tierstructureofthesoftwareaccordingtotheMVCmodefromtheobject-orientedpointofview,inordertosplitthesoftwarelayer,organizethesoftwarecode,andfacilitatetheupgradeandmaintenanceofitsexpansion.Softwarefunctions.Thecontrollerencapsulatesthebusiness

显示全部
相似文档