Computer Engineering and Applications ›› 2018, Vol. 54 ›› Issue (4): 225-230.DOI: 10.3778/j.issn.1002-8331.1608-0547
Previous Articles Next Articles
ZHAO Yu, MA Taihu, MA Junjie
Online:
Published:
赵 宇,马太虎,马俊杰
Abstract: The common C MEX function is confined to calculate child module, it is not used to design the overall control scheme. The coder is not compatible with the DSP chip software, and can’t be done transplantation and experiments. This paper proposes a new multiple file structure C MEX function. The main function, child module and header file are integrated to the multiple file structure. The child module is called by the main function to calculate the whole simulation program. The C MEX code is designed based on the modular multilevel topology rectifier current vector control algorithm. It uses fixed-point DSP model, which can realize efficient transplantation. The simulation results show that the C MEX function realizes the current decoupling and has the characteristics of high integration and efficiency.
Key words: multilevel topology, multiple file structure, vector control, fixed-point
摘要: 常见的C MEX函数局限于对控制系统局部子函数的C代码验证,不能实现整体方案设计;并且与DSP芯片的软件语法不兼容,无法进行代码移植与实验。提出一种新型多文件结构的C MEX函数,将主函数、算法单元模块、头文件合理分配,通过主函数调用子函数实现控制系统的整体设计。该代码以MMC整流器的电流矢量控制算法为基础,高度模拟了定点DSP芯片的语法规则,可实现对DSP芯片的高效移植。仿真与实验测试结果表明所述C MEX函数实现了电流的解耦控制,提高了软件设计集成度与效率。
关键词: 模块化多电平, 多文件结构, 矢量控制, 定点
ZHAO Yu, MA Taihu, MA Junjie. MMC topology rectifier control system design based on new type C MEX function[J]. Computer Engineering and Applications, 2018, 54(4): 225-230.
赵 宇,马太虎,马俊杰. 新型C MEX函数设计MMC整流器控制软件研究[J]. 计算机工程与应用, 2018, 54(4): 225-230.
0 / Recommend
Add to citation manager EndNote|Ris|BibTeX
URL: http://cea.ceaj.org/EN/10.3778/j.issn.1002-8331.1608-0547
http://cea.ceaj.org/EN/Y2018/V54/I4/225