资源简介
异步电机闭环控制PWM启动simulink模型和C程序

代码片段和文件信息
function [sysx0strts] = tongyong2(txuflag)
%等幅变换
%输入 UaUbUc为三相正弦电压,w(100*pi)为dqn坐标系旋转角速度,参数theta(0)为初始时刻d轴与A轴夹角
%输出 UdUqUn
switch flag
%%%%%%%%%%%%%%%%%%
% Initialization %
%%%%%%%%%%%%%%%%%%
case 0
[sysx0strts]=mdlInitializeSizes;
%%%%%%%%%%%%%%%
% Derivatives %
%%%%%%%%%%%%%%%
case 1
sys=mdlDerivatives(txu);
%%%%%%%%%%
% Update %
%%%%%%%%%%
%case 2
% sys=mdlUpdate(txu);
%%%%%%%%%%%
% Outputs %
%%%%%%%%%%%
case 3
sys=mdlOutputs(txu);
case{249}
sys=[];
%%%%%%%%%%%%%%%%%%%%%%%
% GetTimeOfNextVarHit %
%%%%%%%%%%%%%%%%%%%%%%%
%case 4
% sys=mdlGetTimeOfNextVarHit(txu);
%%%%%%%%%%%%%
% Terminate %
%%%%%%%%%%%%%
%case 9
% sys=mdlTerminate(txu);
%%%%%%%%%%%%%%%%%%%%
% Unexpected flags %
%%%%%%%%%%%%%%%%%%%%
otherwise
error([‘Unhandled flag = ‘num2str(flag)]);
end
% end sfuntmpl
%
%=============================================================================
% mdlInitializeSizes
% Return the sizes initial conditions and sample times for the S-function.
%=============================================================================
%
function [sysx0strts]=mdlInitializeSizes
%
% call simsizes for a sizes structure fill it in and convert it to a
% sizes array.
%
% Note that in this example the values are hard coded. This is not a
% recommended practice as the characteristics of the block are typically
% defined by the S-function parameters.
%
sizes = simsizes;
sizes.NumContStates = 1;
sizes.NumDiscStates = 0;
sizes.NumOutputs = 2;
sizes.NumInputs = 4;
sizes.DirFeedthrough = 1;
sizes.NumSampleTimes = 1; % at least one sample time is needed
sys = simsizes(sizes);
%
% initialize the initial conditions
%
x0 = [0];
%
% str is always an empty matrix
%
str = [];
%
% initialize the array of sample times
%
ts = [0 0];
% end mdlInitializeSizes
%
%=============================================================================
% mdlDerivatives
% Return the derivatives for the continuous states.
%=============================================================================
%
function sys=mdlDerivatives(txu)
dx(1)=u(4);
sys=[dx(1)];
% end mdlDerivatives
%
%=============================================================================
% mdlUpdate
% Handle discrete state updates sample time hits and major time step
% requirements.
%=============================================================================
%
function sys=mdlUpdate(txu)
sys = [];
% end mdlUpdate
%
%=============================================================================
% mdlOutputs
% Return the block outputs.
%=============================================================================
%
function sys=mdlOutputs(txu)
Ud=2/3*(u(1)*cos(100*pi*x(1))+u(2)*cos(100*pi*x(1)-2*pi/3)+u(3)*cos(100
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 39745 2013-03-02 11:11 BG\fullU\ku.mdl
文件 9800 2013-03-02 11:11 BG\fullU\power_HEV_powertrain_syncmotor.jpg
文件 49686 2013-03-02 11:11 BG\fullU\SSSSSSS.mdl
文件 3937 2013-03-02 11:11 BG\fullU\tongyong2.m
文件 29767 2013-03-02 11:11 BG\fullU\unti
文件 2151 2013-03-02 11:11 BG\fullU\ybdj.m
文件 37093 2013-03-02 11:11 BG\fullU\yibu.mdl
文件 36309 2013-03-02 11:11 BG\fullU\zhijieqidong.mdl
文件 3772 2013-03-01 14:42 BG\twoloopVVVF\abcsource.m
文件 9800 2013-03-01 14:42 BG\twoloopVVVF\power_HEV_powertrain_syncmotor.jpg
文件 3687 2013-03-01 14:42 BG\twoloopVVVF\R.asv
文件 3688 2013-03-01 14:42 BG\twoloopVVVF\R.m
文件 3937 2013-03-01 14:42 BG\twoloopVVVF\tongyong2.m
文件 9662 2013-03-01 14:42 BG\twoloopVVVF\Umf.jpg
文件 3752 2013-03-01 14:42 BG\twoloopVVVF\VVVF.asv
文件 3710 2013-03-01 14:42 BG\twoloopVVVF\VVVF.m
文件 2151 2013-03-01 14:42 BG\twoloopVVVF\ybdj.m
文件 48167 2013-03-01 14:42 BG\twoloopVVVF\yibuvvvfbi.mdl
文件 3770 2013-03-02 11:11 BG\vectoraa\dq2abc.m
文件 3693 2013-03-02 11:11 BG\vectoraa\inventer.m
文件 11344 2013-03-02 11:11 BG\vectoraa\inverter.jpg
文件 9800 2013-03-02 11:11 BG\vectoraa\power_HEV_powertrain_syncmotor.jpg
文件 3937 2013-03-02 11:11 BG\vectoraa\tongyong2.m
文件 2151 2013-03-02 11:11 BG\vectoraa\ybdj.m
文件 73530 2013-03-02 11:11 BG\vectoraa\yibusl.mdl
文件 3772 2013-03-02 11:11 BG\VVVF\abcsource.m
文件 9800 2013-03-02 11:11 BG\VVVF\power_HEV_powertrain_syncmotor.jpg
文件 3937 2013-03-02 11:11 BG\VVVF\tongyong2.m
文件 9662 2013-03-02 11:11 BG\VVVF\Umf.jpg
文件 3710 2013-03-02 11:11 BG\VVVF\VVVF.m
............此处省略10个文件信息
- 上一篇:multisim12 交流电压表
- 下一篇:跳频通信MATLAB程序
相关资源
- MPC路径跟踪
-
Matlab+Simuli
nk-cmi、miller、双相码 -
MATLAB/simuli
nk短路电流仿真 -
PLLsimuli
nk仿真模型 - 异步电机模型
- 高压直流输电系统的滤波器设计及仿
- 异步电机降压启动matlab仿真
- 异步电动机变频调速系统的设计与仿
- 24脉波整流仿真
-
simuli
nk的使用手册全 -
Simuli
nk快速入门教程 -
《Matlab Simuli
nk与控制系统仿真》. -
混合动力simuli
nk模型 -
基于simuli
nk的带有MPPT功的光伏电池 - Ansoft异步电机仿真
-
基于Simuli
nk的DSB调制解调系统仿真 -
基于Simuli
nk的MFSK系统的仿真 -
基于Simuli
nk的模拟通信仿真 -
基于Simuli
nk的匹配滤波器设计 -
APF资料-APF、SVG simuli
nk源程使用说明 -
simuli
nk之基于模型开发的嵌入式设计 -
Matlab分享系列 - 3 - Matlab_Simuli
nk代码 -
matlab simuli
nk simevent 建模入门 -
用MATLAB-Simuli
nk做锂电池建模 .pdf -
matlab/simuli
nk mu 分析与综合工具箱使 -
基于simuli
nk的组合导航的仿真 -
基于Simuli
nk模型的嵌入式代码生成 - 基于systolic的上三角矩阵求逆电路的实
-
倒立摆的模糊控制基于simuli
nk仿真, -
simuli
nk仿真及代码生成的模型程序文
评论
共有 条评论