資源簡介
有5個電機仿真模型,包括開環V/F,永磁同步電機矢量控制、異步電動機的矢量控制、直接轉矩控制等,歡迎下載、交流。

代碼片段和文件信息
/*
?*?rt_nonfinite.c
?*
?*?Real-Time?Workshop?code?generation?for?Simulink?model?“untitled2_acc.mdl“.
?*
?*?Model?Version??????????????:?1.63
?*?Real-Time?Workshop?version?:?6.4??(R2006a)??03-Feb-2006
?*?C?source?code?generated?on?:?Thu?Sep?23?22:06:17?2010
?*
?*/
/*
?*?Abstract:
?*??????Real-Time?Workshop?function?to?intialize?non-finites
?*??????(Inf?NaN?and?-Inf).
?*/
#include?“rt_nonfinite.h“
real_T?rtInf;
real_T?rtMinusInf;
real_T?rtNaN;
real32_T?rtInfF;
real32_T?rtMinusInfF;
real32_T?rtNaNF;
/*?Function:?rt_InitInfAndNaN?==================================================
?*?Abstract:
?* Initialize?the?rtInf?rtMinusInf?and?rtNaN?needed?by?the
?* generated?code.?NaN?is?initialized?as?non-signaling.?Assumes?IEEE.
?*/
void?rt_InitInfAndNaN(size_t?realSize)?{
??uint16_T?one?=?1;
??enum?{
????LittleEndian
????BigEndian
??}?machByteOrder?=?(*((uint8_T?*)?&one)?==?1)???LittleEndian?:?BigEndian;
??switch?(machByteOrder)?{
????case?LittleEndian:?{
??????typedef?struct?{
????????uint32_T?fraction?:?23;
????????uint32_T?exponent?:?8;
????????uint32_T?sign?:?1;
??????}?LittleEndianIEEESingle;
??????typedef?struct?{
????????struct?{
??????????uint32_T?fraction2;
????????}?wordH;
????????struct?{
??????????uint32_T?fraction1?:?20;
??????????uint32_T?exponent?:?11;
??????????uint32_T?sign?:?1;
????????}?wordL;
??????}?LittleEndianIEEEDouble;
??????(*(LittleEndianIEEESingle*)&rtInfF).sign?=?0;
??????(*(LittleEndianIEEESingle*)&rtInfF).exponent?=?0xFF;
??????(*(LittleEndianIEEESingle*)&rtInfF).fraction?=?0;
??????rtMinusInfF?=?rtInfF;
??????rtNaNF?=?rtInfF;
??????(*(LittleEndianIEEESingle*)&rtMinusInfF).sign?=?1;
??????(*(LittleEndianIEEESingle*)&rtNaNF).fraction?=?0x7FFFFF;
??????if?(realSize?==?4)?{
????????(*(LittleEndianIEEESingle*)&rtInf).sign?=?0;
????????(*(LittleEndianIEEESingle*)&rtInf).exponent?=?0xFF;
????????(*(LittleEndianIEEESingle*)&rtInf).fraction?=?0;
????????rtMinusInf?=?rtInf;
????????rtNaN?=?rtInf;
????????(*(LittleEndianIEEESingle*)&rtMinusInf).sign?=?1;
????????(*(LittleEndianIEEESingle*)&rtNaN).fraction?=?0x7FFFFF;
??????}?else?{
????????(*(LittleEndianIEEEDouble*)&rtInf).wordL.sign?=?0;
????????(*(LittleEndianIEEEDouble*)&rtInf).wordL.exponent?=?0x7FF;
????????(*(LittleEndianIEEEDouble*)&rtInf).wordL.fraction1?=?0;
????????(*(LittleEndianIEEEDouble*)&rtInf).wordH.fraction2?=?0;
????????rtMinusInf?=?rtInf;
????????(*(LittleEndianIEEEDouble*)&rtMinusInf).wordL.sign?=?1;
????????(*(LittleEndianIEEEDouble*)&rtNaN).wordL.sign?=?0;
????????(*(LittleEndianIEEEDouble*)&rtNaN).wordL.exponent?=?0x7FF;
????????(*(LittleEndianIEEEDouble*)&rtNaN).wordL.fraction1?=?0xFFFFF;
????????(*(LittleEndianIEEEDouble*)&rtNaN).wordH.fraction2?=?0xFFFFFFFF;
??????}
????}
????break;
????case?BigEndian:?{
??????typedef?struct?{
????????uint32_T?sign?:?1;
????????uint32_T?exponent?:?8;
????????uint32_T?fraction?:?23;
??????}?BigEndianIEEESingle;
??????typ
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????319488??2009-12-02?20:28??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\svpwm控制\SVPWM.doc
?????文件?????545280??2009-12-01?14:55??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\svpwm控制\svpwm.ppt
?????文件?????131396??2011-04-18?19:36??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\svpwm控制\third.mdl
????..A.SH.???????162??2010-11-25?10:39??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\svpwm控制\~$SVPWM.doc
?????文件???????4783??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\slprj\sim\unti
?????文件????????945??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\slprj\sim\unti
?????文件?????????84??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\slprj\sl_proj.tmw
?????文件??????54471??2012-11-27?22:21??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\unti
?????文件?????????37??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\unti
?????文件????????565??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\unti
?????文件????????439??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\unti
?????文件???????5519??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\unti
?????文件????????841??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\unti
?????文件???????2357??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\unti
?????文件???????1404??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\unti
?????文件????????118??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\unti
?????文件??????17405??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\unti
?????文件??????65351??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\unti
?????文件??????40875??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\unti
?????文件??????49528??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\unti
?????文件??????18778??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\unti
?????文件???????3705??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\unti
?????文件???????1700??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\unti
?????文件????????545??2010-09-23?22:06??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\unti
?????文件?????178176??2012-11-27?22:12??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\vvvf控制\第二次.doc
?????文件????????766??2011-03-08?15:30??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\使用說明請參看右側注釋===〉〉.txt
?????文件?????103467??2010-11-26?14:34??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\異步電機的雙閉環控制\fourth.mdl
?????文件?????274944??2009-12-21?22:16??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\異步電機的雙閉環控制\異步電機的雙閉環控制.doc
?????文件?????149030??2010-12-07?20:33??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\永磁同步電機矢量控制\fourth21.mdl
?????文件?????157696??2009-12-23?21:37??5種電動機控制的MATLAB仿真模型\Permanent?Magnet?Motor\永磁同步電機矢量控制\永磁同步電機矢量控制.doc
............此處省略20個文件信息
評論
共有 條評論