资源简介
异步电机闭环控制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程序
相关资源
- 异步电机spwm控制仿真
-
33637《MATLAB-Simuli
nk电力系统建模与仿 - 计算机控制系统密闭空间的温湿度控
- 异步电机矢量控制matlab仿真已调好
- PWM整流器matlab仿真
-
车辆典型部件Simuli
nk建模仿真 - 基于SPWM的异步电机无速度传感器矢量
- 基于SVPWM异步电机矢量控制系统仿真
- 两电平双闭环PWM整流器
-
Carsim和simuli
nk联合仿真的模型 - 三相逆变器MATLAB仿真
-
simuli
nk练习题个人编写 - 异步电机基于转子磁链定向的matlab仿
-
双馈电机定子磁链定向调速simuli
n -
单相电流互感器饱和simuli
nk仿真模型 -
电池 SOC 估算 simuli
nk·模型 -
simuli
nk_RTW的汽车电子控制系统的研 -
matlab pid fuzzy simuli
nk - MSK通信系统仿真搭建
- matlab级联STATCOM仿真
- matlab交流异步电动机软起动仿真
- 三相VIENNA整流器
- 基于Matlab的异步电机变频调速系统的
- 异步电动机转差频率矢量控制系统的
- SVPWM仿真模型
- HVDC MATLAB风电仿真模型
- grid_connected_doubleloop.mdl 光伏并网双闭
- 完美的光伏发电模型 mppt都有 matlab
-
适合光伏基础入门仿真搭建simuli
n -
逆变器下垂控制simuli
nk仿真程序
评论
共有 条评论