一 0 ⋯ 6二 ! t:N 3I— l707 r 官脸 宝研 亩与撂 杰 RESEAR( H AN【)EXPI ORA_r10N lN LAB()RA rORY 36牯 9 M 20I 7 u J VIl1.36 NlIl U S¨I.2()l 7 基于 Matlab GUI的三容水箱液位 实时监控 系统 设计 朱飞宇 , 徐 志宇 , 黄 国辉 (1.同济大学 电子与信息工程学院,上海 201804;2.博洛尼亚大学 电气电子与信息工程学院,博洛尼亚 40136; 3.杭 州 电子科 技大 学 能量 利用 系统 与 自动化 研究 所 ,杭 州 310018) 摘 要 :为 了实现 三容 水箱教 学 实验 平 台中液位控 制 算 法的 多样 化 和 可移植 性 ,设 计 了基 于 Matlab图形 用 户 界 面 (Graphic User Interface,GUI)的计 算 机 监 控 系统 。 利 用 Matlab的 串 口通信 API,通过 RS-485/RS 232数据 通信 接 口 实现 对 三 容 水 箱 液位 的数 据采 集和控 制 。通信 采 用 Modbus RTU协 议 确 保 数据 的 可靠 传输 。 系统 软件界 面友好、编程方便、操作 简单 ,同时用户可以植入 算法使 系统运行于多种模 式 下。结 果表 明 ,基 于 Matlab GUI设 计 的计 算机 监 控 系统 能够快 速 、准确 地绘 制 出 液位 响应 曲线 ,Flash动 画能够 实时模 拟 出实验进度 。 关键词:三容水箱;Matlab GUI;计算机监控 ;通信协议 ;响应曲线 中图分 类 号 :TP 273.5 文献标 志码 :A 文章编 号 :1006—7167(2O17)09—0083—04 A Design for the Real-time Liquid Level Monitoring System Based on Matlab G U I ZHU Feiyu , XU Zhiyu’ , HUANG Guohui (1.School of Electronics and Information Engineering,Tongji University,Shanghai 20 I 804,China; 2. College of Electrical,Electronic and Information Engineering,University of Bologna,Bologna 40 1 36,haly; 3.Institute of Energy Utilization& Automation,Hangzhou Dianzi University,Hangzhou 3 1 00 1 8,China) Abstract:In order to achieve the algorithm diversification portability of the computer monitoring system in the liquid level contro1.the paper designed a computer monitoring system based on Matlab graphical user interface(GUI).The system uses Matlab’S serial communication API,and uses the RS4 85/RS-232 data communica