《matlab电压电流测量模块的使用.doc》由会员分享,可在线阅读,更多相关《matlab电压电流测量模块的使用.doc(2页珍藏版)》请在金锄头文库上搜索。
1、Matlab版本 R2011b 1.有两类模块端口: 小方块:用于主电路 三角形:用于控制电路 这两类端口信号无法通过信号线直接连接而可以通过测量模块进行连接 常用的测量模块有: 电压测量模块(Simscape/SimPowerSystems/Measurements/) 电流测量模块(Simscape/SimPowerSystems/Measurements/) 多路测量仪(Simscape/SimPowerSystems/Measurements/ ) 2.多路测量仪的使用 (1)元件路径 Simscape/SimPowerSystems/elements/ Simscape/SimPow
2、erSystems/electrical Sources/ (2)电路图 Series RLC Branch 2 ScopeMultimeter AC Voltage Source (3)参数设置 注意:添加完测量模块再添加设置电路参数,否则找不到测量的量 将示波器修改为两个坐标 (4)调试问题 Error in untitled/AC Voltage Source: Initialization commands cannot be evaluated. 解决办法:添加powergui(Simscape/SimPowerSystems/) 网络解释:powergui具体干什么的我也说不好,反
3、正在用到SimPowerSystem里面的模块的时候就必须用到powergui吧不过这个powergui直接放进去就行了。里面还有FFT之类的分析可以用。个人理解就相当于一个头文件感觉的东西。 修改后: Series RLC Branch 2 ScopeMultimeter AC Voltage Source Continuous powergui 仿真结果 1、图形显示的不够平滑,怎么解决?-仿真参数中改小掉 2、为坐标添加标注 3.OUT1模块的使用 Simulink/Sinks/ 首先要选中仿真参数设置中的Save to work space/Output 使用plot(tout,yout)命令即可绘制未经编辑的输出曲线 0.03 0.020.010-0.01-0.02-0.03345678910 曲线编辑: 4.完整仿真步骤实例 (1)建立仿真图 + Continuousv - Voltage Measurementpowergui Series RLC Branch AC Voltage SourceScope i+ - Current Measurement (2)仿真参数设置 (3)电路参数设置 (4)仿真结果