江苏大学本科毕业论文基于LabVIEW与单片机的电压监测系统设计专业班级:11电子(1)班学生姓名:任辉指导老师:朱慧博职称:副教授摘要在电子产业日益发达的当今社会,及时准确的监测出当前的电压值并且予以反馈在确保人身安全与系统正常运行反面显得尤为重要。在这种背景下,基于LabVIEW和单片机的电压监测的设计受到了极大关注。在此次设计的系统中,主要分为两个部分即上位机与下位机。上位机主要是通过前面板来显示测量结果,LabVIEW作为开发平台,利用VISA调用串口程序读取数据,对采集到的电压数据进行实时处理、显示、存储与报警。当采集电压超过设定值时,前面板会出现蜂鸣器警戒响声,反之则会正常显示。当然这一切的实现都是建立在后面板设计和下位机硬件设计的基础上完成的。下位机部分主要是相关元器件的连接,选用STC89C51作为核心器件,同时利用ADC0809来完成对电压的采集工作,将采集到的结果送至单片机,然后通过串口通信送至计算机的LabVIEW系统中进行显示。为了增加传输距离和实现电路复位功能,在硬件电路设计部分增加了MAX232。由于虚拟仪器的使用,使得设计成本大大降低,再加之虚拟仪器与单片机所具有的诸多优点,相信在不久的将来,电压监测与虚拟仪器这两个方面必将得到更多的应用与更好的完善。关键词LabVIEW单片机电压监测串口通信江苏大学本科毕业论文BasedontheLabVIEWandVoltageMonitoringSystemDesignofSingleChipMicrocomputerAbstractIntheelectronicsindustryisincreasinglydevelopedintoday'ssociety,timelyandaccuratemonitoringofthecurrentvoltagevalueandgivefeedbacktoensurepersonalsafetyandnormaloperationofthereversesideisparticularlyimportant.Inthiscontext,basedontheLabVIEWandMCUvoltagemonitoringdesignreceivedalotofattention.Inthedesignofthesystem,themainisdividedintotwopartstheuppermachineandlowermachine.Uppermachinemainlythroughthefrontpaneltodisplaythemeasurementresults,theLabVIEWasthedevelopmentplatform,USESVISAcallaserialporttoreaddata,real-timevoltageofcollecteddataprocessing,display,storage,andreporttothepolice.Whencollectingvoltagemorethanthesetvalue,thefrontpanelwillappearthebuzzeralarmsound,theoppositewilldisplayproperly.,ofcourse,theimplementationofallthisisbuiltinthepanelonthebasisofthedesignandthehardwaredesignofsinglechipprocessorsystem.Underamachinepartwasmainlyrelatedtocomponentsoftheconnection,STC89C51chosenasthecoredevice,atthesametimeusingADC0809tocompletetheacquisitionworkofvoltage,thecollectedresultssenttothesingle-chipmicrocomputer,andthensenttothecomputerthroughaserialportcommunicationoftheLabVIEWfordisplayinthesystem.Inordertoincreasethetransmissiondistanceandresetfunction,implementcircuitinthehardwarecircuitdesignpartincreasedMAX232.Duetotheuseofvirtualinstrument,greatlyreducethedesigncost,coupledwithvirtualinstrumentwithsinglechipmicrocomputerhasmanyadvantages,believeinthenearfuture,thevoltagemonitoringandvirtualinstrumentistheapplicationofthesetwoaspectswillgetmoreandbetter.KeywordsLabVIEWSCMVoltageMonitoringSerialCommunication江苏大学本科毕业论文目录第一章引言........................................................................................................................................................11.1课题研究的背景....................................................................................................................................11.2国内外电压监测系统的研究状况........................................................................................................11.2.1国内电压监测系统的研究状况.................................................................................................11.2.2国外电压监测系统的研究状况.................................................................................................21.3LabVIEW的应用现状..........................................................................................................................21.4课题研究的意义....................................................................................................................................2第二章虚拟仪器概述........................................................................................................................................32.1虚拟仪器简介........................................................................................................................................32.1.1虚拟仪器的概念.........................................................................................................................32.1.2虚拟仪器的结构.........................................................................................................................42.1.3虚拟仪器的特点.........................................................................................................................42.1.4虚拟仪器的优势.........................................................................................................................42.1.5前面板设计.................................................................................................................................52.2构建程序框图........................................................................................................................................62.2.1程序框图中的对象.....................................................................................................................62.2.2基本数据类型.............................................................................................................................62.2.3程序的层次结构.........................................................................................................................62.3程序框图设计原则................................................................................................................................6第三章单片机简介............................................................................................................................................83.1单片机的基本概念...........................