资源简介
异步电机直接启动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 fullUa\ku.mdl
文件 9800 2013-03-02 11:11 fullUa\power_HEV_powertrain_syncmotor.jpg
文件 49686 2013-03-02 11:11 fullUa\SSSSSSS.mdl
文件 3937 2013-03-02 11:11 fullUa\tongyong2.m
文件 29767 2013-03-02 11:11 fullUa\unti
文件 2151 2013-03-02 11:11 fullUa\ybdj.m
文件 37093 2013-03-02 11:11 fullUa\yibu.mdl
文件 36309 2013-03-02 11:11 fullUa\zhijieqidong.mdl
目录 0 2013-03-02 23:19 fullUa
----------- --------- ---------- ----- ----
208488 9
- 上一篇:SVPWM发波程序
- 下一篇:基于matlab的一种语音加密程序
相关资源
- 基于BP神经网络的盲均衡算法 C程序(
- 异步电机模型
- 异步电机降压启动matlab仿真
- 异步电动机变频调速系统的设计与仿
- Ansoft异步电机仿真
-
基于Matlab_Simuli
nk的异步电机矢量控 - MPC程序总结MATLAB
- 模型预测控制MPC程序
- 基于MATLAB的三相异步电机转速调节的
- 基于优化的ADRC在异步电机矢量控制系
- 三相异步电机静止状态下参数辨识M
-
论文研究-基于Simuli
nk异步电机矢量 -
ba
seOnField.slx - 三相交流异步电机矢量控制系统仿真
- 异步电机开环恒压频比控制
- 异步电机vf控制matlab仿真模型
- 异步电机带电阻压降补偿的vf控制ma
- 三相异步电机调压调速仿真-dianji.md
-
异步电机矢量控制仿真模型simuli
n - 异步电机直接转矩控制仿真模型
- 自动门西门子S7-200PLC程序
- 异步电机矢量控制 mdl
- 异步电机直接转矩控制Matlab仿真
-
异步电机变频调速simuli
nk仿真 - 异步电机动态模型
- 异步电机的间接矢量matlab仿真
-
异步电机的simuli
nk模型 -
异步电机simuli
nk数学模型 - 异步电机软起动matlab仿真文件
- 异步电机的各种仿真模型
评论
共有 条评论