单片机与嵌入式系统应用
單片機與嵌入式繫統應用
단편궤여감입식계통응용
MICROCONTROLLER & EMBEDDED SYSTEM
2011年
8期
31-34
,共4页
钟美兰%程玉华%关健%雷凯%罗建明
鐘美蘭%程玉華%關健%雷凱%囉建明
종미란%정옥화%관건%뢰개%라건명
S—Function%SVPWM%MATLAB仿真%CCS
S—Function%SVPWM%MATLAB倣真%CCS
S—Function%SVPWM%MATLAB방진%CCS
S-Function%SVPWM%MATLAB simulation%CCS
S—Function有两种形式,一种是M文件,另一种是C—MEX文件,前者支持功能强大的工具箱,后者支持C、C++等语言,并且在仿真上更快速有效。基于TMS320C2812的SVPWM算法在TI的CCS软件中实现,并且支持C、C++语言,这给程序通过S—Function移植到MATLAB中进行仿真提供了一种有效途径。利用在Simulink中搭建的三相全桥逆变器模型与S—Function编写的算法模块相结合,并进行仿真,简单有效地说明了S—Function的实际应用并验证了SVPWM算法的正确性。
S—Function有兩種形式,一種是M文件,另一種是C—MEX文件,前者支持功能彊大的工具箱,後者支持C、C++等語言,併且在倣真上更快速有效。基于TMS320C2812的SVPWM算法在TI的CCS軟件中實現,併且支持C、C++語言,這給程序通過S—Function移植到MATLAB中進行倣真提供瞭一種有效途徑。利用在Simulink中搭建的三相全橋逆變器模型與S—Function編寫的算法模塊相結閤,併進行倣真,簡單有效地說明瞭S—Function的實際應用併驗證瞭SVPWM算法的正確性。
S—Function유량충형식,일충시M문건,령일충시C—MEX문건,전자지지공능강대적공구상,후자지지C、C++등어언,병차재방진상경쾌속유효。기우TMS320C2812적SVPWM산법재TI적CCS연건중실현,병차지지C、C++어언,저급정서통과S—Function이식도MATLAB중진행방진제공료일충유효도경。이용재Simulink중탑건적삼상전교역변기모형여S—Function편사적산법모괴상결합,병진행방진,간단유효지설명료S—Function적실제응용병험증료SVPWM산법적정학성。
S-Function has two forms: the M file and the C-MEX file. the former supports a powerful toolbox, the latter supports C, C+ + and other languages is more quick and efficient on simulation. The SVPWM algorithm based on TMS320C2812 is implemented in TI's CCS software which supports C, C+ + language, providing an effective way to the algorithm ported to MATLAB for simulation through S-Function. Combining the three-phase inverter system module built by simulink and the control algorithm written by S-Function for simulation explains the practical application of S-Function and proves the correctness of the control algorithm.