📄 im_dtc.mdl
字号:
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [0, 0; 55, 0]
Branch {
Points [110, 0]
Branch {
Points [110, 0]
DstBlock "Switch2"
DstPort 3
}
Branch {
DstBlock "Switch1"
DstPort 3
}
}
Branch {
DstBlock "Switch"
DstPort 3
}
}
Line {
SrcBlock "+Ud/2"
SrcPort 1
Points [0, 0; 55, 0]
Branch {
Points [110, 0]
Branch {
Points [110, 0]
DstBlock "Switch2"
DstPort 1
}
Branch {
DstBlock "Switch1"
DstPort 1
}
}
Branch {
DstBlock "Switch"
DstPort 1
}
}
}
}
Block {
BlockType Gain
Name "3/2"
Position [1010, 161, 1065, 219]
Gain "2/3*[1 -0.5 -0.5;0 sqrt(3)/2 -sqrt(3)/2]"
Multiplication "Matrix(K*u)"
}
Block {
BlockType SubSystem
Name "DTC"
Ports [3, 1]
Position [500, 115, 665, 265]
ShowName off
FontName "Arial"
FontSize 14
FontWeight "bold"
TreatAsAtomicUnit off
MaskDisplay "plot(-1.5,-1.5,1.5,1.5,cos(0:pi/3:2*pi),sin(0:p"
"i/3:2*pi))\ndisp('DTC\\ncontroller')"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "DTC"
Location [244, 251, 761, 649]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "f_ref"
Position [25, 103, 55, 117]
}
Block {
BlockType Inport
Name "T_er"
Position [25, 163, 55, 177]
Port "2"
}
Block {
BlockType Inport
Name "fs"
Position [30, 343, 60, 357]
Port "3"
}
Block {
BlockType Display
Name "Bf"
Ports [1]
Position [230, 72, 315, 98]
NamePlacement "alternate"
Decimation "1"
}
Block {
BlockType Fcn
Name "Fcn"
Position [265, 25, 355, 55]
Orientation "left"
ShowName off
Expr "sqrt(u(1)^2+u(2)^2)"
}
Block {
BlockType Relay
Name "Relay"
Position [145, 95, 175, 125]
ShowName off
OnSwitchValue ".02"
OffSwitchValue "-.02"
Port {
PortNumber 1
Name "Bf"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Relay
Name "Relay1"
Position [100, 125, 130, 155]
ShowName off
OnSwitchValue ".2"
OffSwitchValue "0"
}
Block {
BlockType Relay
Name "Relay2"
Position [100, 190, 130, 220]
ShowName off
OnSwitchValue "0"
OffSwitchValue "-.2"
OnOutputValue "0"
OffOutputValue "-1"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [100, 100, 120, 120]
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "-+|"
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1]
Position [175, 160, 195, 180]
ShowName off
IconShape "round"
Inputs "+++"
}
Block {
BlockType Constant
Name "d"
Position [135, 160, 155, 180]
ShowName off
}
Block {
BlockType Reference
Name "num2bin"
Ports [1, 1]
Position [355, 142, 410, 198]
SourceBlock "simulink/Look-Up\nTables/Direct Look-Up\nTa"
"ble (n-D)"
SourceType "LookupNDDirect"
maskTabDims "2"
explicitNumDims "1"
outDims "Column"
tabIsInput off
mxTable "[0 0 0;1 0 0;0 1 0;1 1 0;0 0 1;1 0 1;0 1 1;"
"1 1 1]'"
clipFlag "Error"
}
Block {
BlockType Reference
Name "num2bin1"
Ports [3, 1]
Position [235, 139, 300, 201]
SourceBlock "simulink/Look-Up\nTables/Direct Look-Up\nTa"
"ble (n-D)"
SourceType "LookupNDDirect"
maskTabDims "3"
explicitNumDims "1"
outDims "Element"
tabIsInput off
mxTable "a"
clipFlag "Error"
}
Block {
BlockType Display
Name "sector #"
Ports [1]
Position [315, 218, 400, 242]
Decimation "1"
}
Block {
BlockType SubSystem
Name "sector selector"
Ports [1, 1]
Position [305, 259, 395, 321]
Orientation "left"
TreatAsAtomicUnit off
System {
Name "sector selector"
Location [147, 381, 833, 571]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "fs"
Position [15, 43, 45, 57]
}
Block {
BlockType Gain
Name "1/(pi/3)"
Position [425, 35, 455, 65]
Gain "1/(pi/3)"
}
Block {
BlockType Gain
Name "2*pi"
Position [255, 75, 285, 105]
Gain "2*pi"
}
Block {
BlockType Constant
Name "Constant1"
Position [155, 80, 185, 110]
ShowName off
Value "0"
}
Block {
BlockType Constant
Name "Constant2"
Position [330, 80, 360, 110]
ShowName off
Value "pi/6"
}
Block {
BlockType Constant
Name "Constant3"
Position [485, 75, 515, 105]
ShowName off
Value "6"
}
Block {
BlockType Math
Name "Math\nFunction2"
Ports [2, 1]
Position [555, 29, 590, 111]
ShowName off
Operator "mod"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [205, 72, 235, 103]
ShowName off
Operator "<"
}
Block {
BlockType Rounding
Name "Rounding\nFunction"
Position [485, 35, 515, 65]
ShowName off
}
Block {
BlockType Sum
Name "Sum6"
Ports [2, 1]
Position [290, 40, 310, 60]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum7"
Ports [2, 1]
Position [370, 40, 390, 60]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Fcn
Name "x->theta"
Position [75, 38, 155, 62]
ShowName off
Expr "atan2(u(2),u(1))"
}
Block {
BlockType Outport
Name "sector"
Position [635, 63, 665, 77]
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "2*pi"
DstPort 1
}
Line {
SrcBlock "2*pi"
SrcPort 1
Points [10, 0]
DstBlock "Sum6"
DstPort 2
}
Line {
SrcBlock "Sum6"
SrcPort 1
DstBlock "Sum7"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [15, 0]
DstBlock "Sum7"
DstPort 2
}
Line {
SrcBlock "Sum7"
SrcPort 1
DstBlock "1/(pi/3)"
DstPort 1
}
Line {
SrcBlock "1/(pi/3)"
SrcPort 1
DstBlock "Rounding\nFunction"
DstPort 1
}
Line {
SrcBlock "Rounding\nFunction"
SrcPort 1
DstBlock "Math\nFunction2"
DstPort 1
}
Line {
SrcBlock "Constant3"
SrcPort 1
DstBlock "Math\nFunction2"
DstPort 2
}
Line {
SrcBlock "fs"
SrcPort 1
DstBlock "x->theta"
DstPort 1
}
Line {
SrcBlock "Math\nFunction2"
SrcPort 1
DstBlock "sector"
DstPort 1
}
Line {
SrcBlock "x->theta"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
Branch {
DstBlock "Sum6"
DstPort 1
}
}
Annotation {
Name "Sector selector"
Position [336, 140]
FontName "Arial"
FontSize 18
FontWeight "bold"
}
Annotation {
Name "(0 to 5)"
Position [340, 162]
FontName "Arial"
FontSize 14
FontWeight "bold"
}
}
}
Block {
BlockType Display
Name "state"
Ports [1]
Position [345, 71, 430, 99]
NamePlacement "alternate"
Decimation "1"
}
Block {
BlockType Outport
Name "s3"
Position [480, 163, 510, 177]
}
Line {
SrcBlock "num2bin1"
SrcPort 1
Points [-5, 0; 30, 0]
Branch {
DstBlock "state"
DstPort 1
}
Branch {
DstBlock "num2bin"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Relay"
DstPort 1
}
Line {
Name "Bf"
Labels [0, 1]
SrcBlock "Relay"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [0, -25]
DstBlock "Bf"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "num2bin1"
DstPort 1
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [-150, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "num2bin1"
DstPort 2
}
Line {
SrcBlock "Relay1"
SrcPort 1
Points [50, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Relay2"
SrcPort 1
Points [50, 0]
DstBlock "Sum2"
DstPort 3
}
Line {
SrcBlock "d"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "T_er"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, 35]
DstBlock "Relay2"
DstPort 1
}
Branch {
Points [0, -30]
DstBlock "Relay1"
DstPort 1
}
}
Line {
SrcBlock "f_ref"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "num2bin"
SrcPort 1
DstBlock "s3"
DstPort 1
}
Line {
SrcBlock "fs"
SrcPort 1
Points [385, 0; 0, -60]
Branch {
Points [0, -250]
DstBlock "Fcn"
DstPort 1
}
Branch {
DstBlock "sector selector"
DstPort 1
}
}
Line {
SrcBlock "sector selector"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -