按照基于模型设计(MBD)的思想,设计了功率测量系统。在 Simulink 环境下对测量的物理环境及信号调理电路建模,使初期算法测试与后期硬件实现相结合。通过 Simulink 软件包和函数库建立了四种可移植的算法模型,并选取了准同步采样算法、小波包分析两种测量算法实现功率测量。并通过软件在环测试比较了这两种算法,验证不同频率、谐波组合、功率因数及非平稳波形下算法的精度,改善数字测量系统的开发流程。使用 Simulink 中的 RTW - EC 工具箱将算法模型自动生成 C 代码并下载至 ARM 中,实现了基于模型设计流程,效果令人满意。%A digital simulation model of power measurement system has been designed based on a Model - Based De-sign(MBD)method. The physical environment and signal conditioning circuit have been modeled under Matlab / Sim-ulink environment so as to combine the early algorithm simulation with the late hardware implementation. Four types of portable power measurement models are established with the help of Simulink software package and Simulink function library,and the quasi - synchronous sampling method and wavelet packet transform algorithm are adopted to realized power measurement. These two algorithms are compared with the method of software in the loop test,and the results verify the accuracy of algorithms in the condition of different frequencies,harmonic combinations,power factors and non - stationary waveforms,and this will help us improve the developing procedure of digital measurement system. RTW - EC toolbox in Simulink has been adopted to generate C code automatically and download to ARM,so as to re-alize MBD procedure,and the experiment result satisfy the expectation.
展开▼