📄 svgensim4.mdl
字号:
isLibrary 0
firstTarget 24
sfVersion 60014000.000006
}
chart {
id 2
name "clarke"
windowPosition [240.45 333.75 200.25 189.75]
viewLimits [0 156.75 0 153.75]
screen [1 1 1024 768 1.333333333333333]
treeNode [0 3 0 0]
firstTransition 5
firstJunction 4
viewObj 2
machine 1
decomposition CLUSTER_CHART
type EML_CHART
firstData 6
chartFileNumber 1
disableImplicitCasting 1
eml {
name "clarke"
}
}
state {
id 3
labelString "eML_blk_kernel()"
position [18 64.5 118 66]
fontSize 12
chart 2
treeNode [2 0 0 0]
superState SUBCHART
subviewer 2
type FUNC_STATE
decomposition CLUSTER_STATE
eml {
isEML 1
script "function [Vbeta,Valfa] = clarke(Va,Vb,Vc)\n"
" Valfa=Va;\n"
" Vbeta=(Va+2*Vb)/sqrt(3);\n"
""
editorLayout "100 M4x1[146 623 1032 739]"
}
}
junction {
id 4
position [23.5747 49.5747 7]
chart 2
linkNode [2 0 0]
subviewer 2
type CONNECTIVE_JUNCTION
}
transition {
id 5
labelString "{eML_blk_kernel();}"
labelPosition [32.125 19.875 102.544 14.964]
fontSize 12
src {
intersection [0 0 1 0 23.5747 14.625 0 0]
}
dst {
id 4
intersection [7 0 -1 -1 23.5747 42.5747 0 0]
}
midPoint [23.5747 24.9468]
chart 2
linkNode [2 0 0]
dataLimits [21.175 25.975 14.625 42.575]
subviewer 2
drawStyle SMART
}
data {
id 6
name "Va"
linkNode [2 0 7]
scope INPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
}
}
}
data {
id 7
name "Vbeta"
linkNode [2 6 8]
scope OUTPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
}
}
}
data {
id 8
name "Vb"
linkNode [2 7 9]
scope INPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
}
}
}
data {
id 9
name "Vc"
linkNode [2 8 10]
scope INPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
}
}
}
data {
id 10
name "Valfa"
linkNode [2 9 0]
scope OUTPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
}
}
}
instance {
id 11
name "clarke"
machine 1
chart 2
}
chart {
id 12
name "svgen1"
windowPosition [300.45 273.75 200.25 189.75]
viewLimits [0 156.75 0 153.75]
screen [1 1 1024 768 1.333333333333333]
treeNode [0 13 0 0]
firstTransition 15
firstJunction 14
viewObj 12
machine 1
decomposition CLUSTER_CHART
type EML_CHART
firstData 16
chartFileNumber 2
disableImplicitCasting 1
eml {
name "svgen"
}
}
state {
id 13
labelString "eML_blk_kernel()"
position [18 64.5 118 66]
fontSize 12
chart 12
treeNode [12 0 0 0]
superState SUBCHART
subviewer 12
type FUNC_STATE
decomposition CLUSTER_STATE
eml {
isEML 1
script "function [twa,twb,twc,sec,the] = svgen(Ube,Ual)\n"
"\n"
" Ubeta=Ube;Ualfa=Ual;\n"
" \n"
" Ur1=Ubeta;\n"
" Ur2=-0.5*Ubeta+sqrt(3)*Ualfa/2;\n"
" Ur3=-0.5*Ubeta-sqrt(3)*Ualfa/2;\n"
" \n"
" ta=0.5;tb=ta;tc=tb;\n"
" tw1=0.5;tw2=0.5;\n"
" sector=0;theta=0;\n"
" \n"
" if Ur1>0 sector=sector+1;end \n"
" if Ur2>0 sector=sector+2;end\n"
" if Ur3>0 sector=sector+4;end \n"
" sec=sector;\n"
" \n"
" X=Ubeta;\n"
" Y=0.5*Ubeta+sqrt(3)*Ualfa/2;\n"
" Z=0.5*Ubeta-sqrt(3)*Ualfa/2;\n"
"\n"
" if sector==0\n"
" ta=0.5;\n"
" tb=0.5;\n"
" tc=0.5;\n"
" elseif sector==1\n"
" tw1=Z; tw2=Y;\n"
" tc=(1-tw1-tw2)/2;\n"
" ta=tc+tw2;\n"
" tb=ta+tw1; \n"
" theta=2*60;\n"
" elseif sector==2\n"
" tw1=Y; tw2=-X;\n"
" tb=(1-tw1-tw2)/2;\n"
" tc=tb+tw2;\n"
" ta=tc+tw1; \n"
" theta=6*60;\n"
" elseif sector==3\n"
" tw1=-Z; tw2=X;\n"
" tc=(1-tw1-tw2)/2;\n"
" tb=tc+tw2;\n"
" ta=tb+tw1; \n"
" theta=1*60;\n"
" elseif sector==4\n"
" tw1=-X;tw2=Z;\n"
" ta=(1-tw1-tw2)/2;\n"
" tb=ta+tw2;\n"
" tc=tb+tw1; \n"
" theta=4*60;\n"
" elseif sector==5\n"
" tw1=X;tw2=-Y;\n"
" ta=(1-tw1-tw2)/2;\n"
" tc=ta+tw2;\n"
" tb=tc+tw1; \n"
" theta=3*60;\n"
" elseif sector==6\n"
" tw1=-Y;tw2=-Z; \n"
" tb=(1-tw1-tw2)/2;\n"
" ta=tb+tw2;\n"
" tc=ta+tw1; \n"
" theta=5*60;\n"
" end \n"
" \n"
" the=theta;\n"
" twa=ta;\n"
" twb=tb;\n"
" twc=tc;\n"
""
editorLayout "100 M4x1[239 424 1032 746]"
}
}
junction {
id 14
position [23.5747 49.5747 7]
chart 12
linkNode [12 0 0]
subviewer 12
type CONNECTIVE_JUNCTION
}
transition {
id 15
labelString "{eML_blk_kernel();}"
labelPosition [32.125 19.875 102.544 14.964]
fontSize 12
src {
intersection [0 0 1 0 23.5747 14.625 0 0]
}
dst {
id 14
intersection [7 0 -1 -1 23.5747 42.5747 0 0]
}
midPoint [23.5747 24.9468]
chart 12
linkNode [12 0 0]
dataLimits [21.175 25.975 14.625 42.575]
subviewer 12
drawStyle SMART
}
data {
id 16
name "Ube"
linkNode [12 0 17]
scope INPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
firstIndex ""
}
}
}
data {
id 17
name "twa"
linkNode [12 16 18]
scope OUTPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
}
}
}
data {
id 18
name "Ual"
linkNode [12 17 19]
scope INPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
firstIndex ""
}
}
}
data {
id 19
name "twb"
linkNode [12 18 20]
scope OUTPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
}
}
}
data {
id 20
name "twc"
linkNode [12 19 21]
scope OUTPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
}
}
}
data {
id 21
name "sec"
linkNode [12 20 22]
scope OUTPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
}
}
}
data {
id 22
name "the"
linkNode [12 21 0]
scope OUTPUT_DATA
machine 1
dataType "inherited"
fixptType {
bias 0
slope 1
exponent 0
baseType SF_INT16_TYPE
lock 0
}
dlgFixptMode 0
props {
range {
minimum ""
maximum ""
}
array {
size "-1"
}
}
}
instance {
id 23
name "svgen1"
machine 1
chart 12
}
target {
id 24
name "sfun"
description "Default Simulink S-Function Target."
machine 1
linkNode [1 0 0]
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -