资源简介
异步电机直接启动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的一种语音加密程序
相关资源
- 异步电机运行MATLAB仿真
-
三相异步电机矢量控制simuli
nk仿真模 - matlab和c程序混编提示找不到mex.h
- 如何在matlab中调用C程序
-
基于交流异步电机控制的simuli
nk仿真 - 直线插补PLC程序可运行
- 异步电机矢量控制仿真模型
-
异步电机闭环控制simuli
nk模型和C程 - 异步电机spwm控制仿真
- 异步电机矢量控制matlab仿真已调好
- 基于SPWM的异步电机无速度传感器矢量
- 基于SVPWM异步电机矢量控制系统仿真
- 异步电机基于转子磁链定向的matlab仿
- matlab交流异步电动机软起动仿真
- 基于Matlab的异步电机变频调速系统的
- 异步电动机转差频率矢量控制系统的
- 异步电机matlab仿真
- matlab三相调压异步机电路
-
SVPWM矢量控制异步电机Matlab/simuli
n - mcmc程序MATLAB
- 异步电机矢量控制,亲测可用,版本
- PID算法Matlab仿真程序和C程序[doc.xueh
-
异步电动机变压变频调速的simuli
n - 他励直流电动机启动的MATLAB仿真
- 异步电机电磁计算程序
- 异步电机矢量控制MATLAB 仿真
- 经典预测控制程序
- 鼠笼型异步电机恒压频比控制仿真-
- 原创搭建的三相异步电机仿真模型-
- ACI_vf_control.slx
评论
共有 条评论