
2013年第6期(总第186期)
doi:10.3969/j. issn. 1009 3230.2013.06.001
应用能源技术
基于DSP的逆变器代码生成系统
仿真的设计与实现王晓雷,高旭东,吴锋,时光文(中原工学院,河南郑州450007)
摘要:基于MATLAB作为一种直观、高效的计算机语言,利用Matlab编译器和C/C++ 的数学库和图形库,能将自动生成独立于Matlab运行的C和C++代码,建立单相逆变器的数学模型,确定开关频率的电压外环电流内环的瞬时值双闭环控制策略,在单极性倍频调制方式下,搭建以DSP为控制核心的单相逆变器仿真模型。实验结果表明,在双闭环控制策略下,逆变器输出电压的波形得到及时补偿。自动生成代码,增强程序的可视化程度。这样大大缩短整个DSP软件设计开发周期。
关键词:嵌入式生成代码;逆变器;双闭环控制
中图分类号:TP311.138文献标志码:B文章编号:1009-3230(2013)06-0001-03 Design and Implementation of SimulationBased on theInverter
DSPCodeGenerationSystem
WANG Xiao lei, GAO Xudong, WU Feng, SHI Guang wen(ZhongyuanUniversity ofTechnology,Zhengzhou450007,China)
Abstract: Based on MATLAB as one kind of intuitive, efficient of computer language, the use of Matlab compiler and C / C ++ the math library and graphics library, you can automatically generate an independent running in Matlab C and C + + code, the establishment of a single phase inverter mathematics model to determine the instantaneous value of the switching frequency of the outer voltage loop and inner current loop and double loop control strategy, in the unipolar multiplier modulation mode, to build a simulation model of single phase inverter with DSP as the control center. Experimental results show that the double loop control strategy, the inverter output voltage waveform receive timely compensation.Automatic code generation, enhanced visualization of the
program.Thus greatly reducing theDSP sofware design and development cycle. Key words: Embedded generate code; Inverter; Dual closed loop control
0引言
想要得到性能比较稳定的并联系统,对单台逆变器的性能要求非常重要,因此,单相逆变器的控制方法非常重要。最早出现的闭环控制技术主要有电压瞬时值反馈、无差拍控制和重复控制等
收稿日期:20130411
修订日期:2013-0427
作者简介:王晓雷(1963-),男,教授,博士,硕士生导师。
研究方向:电机电器与电力电子。
万方数据
1
方案。后来又出现了电流电压双闭环控制[1-2] 根据内环电流的反馈不同,可分为电感电流内环电压外环和电容电流内环电压外环两种。电容电流内环控制系统不能通过限流实施对逆变电源的保护,所以在此采用电感电流作为内环反馈的控制方案(3-4)。
随着数字信号处理器的推出,逆变控制进人