收稿日期:2022-10-16第一作者:王子权(1996—),男,安徽亳州人,工学硕士,工程师,研究方向为卫星工程工艺设计,机电液一体化技术,嵌入式系统开发技术,先进控制算法及应用。E-mail:wangziquanringse@qq.com基于MATLAB的多路温湿度测量系统软件设计王子权,汪林,卜勤超,蔡群,夏治强,项贇,项#超(上海卫星装备研究所,上海200240)摘要:为进行部组件级航天产品温湿度监测与实验研究,开发了一种通用温湿度测量系统上位机。基于MATLABGUI开发环境,采用RS232串口通信方式,以数据首字母A~P作为温度数据判断依据,共16路,数据保存为文本文件;以数据首字母a~p作为湿度数据判断依据,共16路,数据保存至文本文件。通过数据曲线显示界面和监测系统界面,可将16路温度数据和16路湿度数据以实时曲线形式显和显示当前16路温度分布和湿度分布彩图;在软件的串口配置界面可配置串口通信协议;在软件的串口调试界面可从终端机接收数据。实验调试证明系统运行稳定,可应用于多种需温湿度监测现场。关键词:温湿度测量;数据存储;MATLABGUI;软件设计;串口通信中图分类号:TP311.5文章编号:1000-0682(2023)02-0023-05文献标识码:ADOI:10.19950/j.cnki.cn61-1121/th.2023.02.005Thesoftwaredesignofmulti-channeltemperatureandhumiditymeasurementsystembasedonMATLABWANGZiquan,WANGLin,BOQinchao,CAIQun,XIAZhiqiang,XIANGYun,XIANGChao(ShanghaiInstituteofSpacecraftEquipment,Shanghai200240,China)Abstract:Inordertocarryoutthetemperatureandhumiditymonitoringandexperimentalresearchofthecomponentlevelaerospaceproducts,ageneraluppercomputeroftemperatureandhumiditymeasure-mentsystemwasdeveloped.BasedontheMATLABGUIdevelopmentenvironment,RS232serialcom-municationmodeisadopted,andtheinitialletterA~Pofthedataisusedasthejudgmentbasisfortem-peraturedata.Thereare16channelsintotal,andthedataissavedasatextfile.Theinitiallettera~pofthedataisusedasthejudgmentbasisforhumiditydata.Thereare16channelsintotal,andthedataissavedtothetextfile.Throughthedatacurvedisplayinterfaceandthemonitoringsysteminterface,the16channeltemperaturedataand16channelhumiditydatacanbedisplayedanddisplayedintheformofreal-timecurvesinthecurrent16channeltemperaturedistributionandhumidit...